From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 448D71D523; Wed, 4 Oct 2023 18:08:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65CE1C433C9; Wed, 4 Oct 2023 18:08:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696442932; bh=7KinbA8DNblA+Km2f8glGeQw5rEldbniDtB58mio/Fw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rHzpZAiVZd7ZFkiW/MGVBek96RFTIJjcohB0e/YOf0qtsOfUMAWU2MGGzR58wiowk D/P/URX2DhFNOVR9vJ/iYgXQQu+nnZ5LcLPjq6DjmC5SGUzxYiaHXdCc5gSw1Ymo4S usX+ofMOub/zY945XGGYVRJBlqabJwqtchOEsNd+6vjIXbgMUhT/H/VTfV29ZP1zYn 7t3V1E3MqfJZe+cr64wLZXz+p5xjo/GJfotavtLabkH2PDWZF3sC02RK5Qfd6RcDrF eo0r5avug/98hGKx9/kkETVhBcDLVQZFFIQdQ3mIL7Q0qfasJBbkh90UaCgQI+7fwV RlRsShJqz9k3w== Date: Wed, 4 Oct 2023 11:08:50 -0700 From: Jakub Kicinski To: Alexander Lobakin Cc: Larysa Zaremba , , , , , , , , , , , , , David Ahern , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , "Alexander Lobakin" , Magnus Karlsson , Maryam Tahhan , , , Willem de Bruijn , Alexei Starovoitov , Simon Horman , Tariq Toukan , Saeed Mahameed , Maciej Fijalkowski Subject: Re: [RFC bpf-next v2 09/24] xdp: Add VLAN tag hint Message-ID: <20231004110850.5501cd52@kernel.org> In-Reply-To: <8e9d830b-556b-b8e6-45df-0bf7971b4237@intel.com> References: <20230927075124.23941-1-larysa.zaremba@intel.com> <20230927075124.23941-10-larysa.zaremba@intel.com> <20231003053519.74ae8938@kernel.org> <8e9d830b-556b-b8e6-45df-0bf7971b4237@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 3 Oct 2023 15:09:39 +0200 Alexander Lobakin wrote: > > Sorry for a random chime-in but was there any discussion about > > the validity of VLAN stripping as an offload? > > > > I always thought this is a legacy "Windows" thing which allowed > > Windows drivers to operate on VLAN-tagged networks even before > > the OS itself understood VLANs... Do people actually care about > > having it enabled? > > On MIPS routers, I actually have some perf gains from having it enabled. > So they do, I'd say. Mediatek even has DSA tag stripping. Both save you > some skb->data push-pulls, csum corrections when CHECKSUM_COMPLETE, skb > unsharing in some cases, reduce L3/L4 headers cacheline spanning etc. No unsharing - you can still strip it in the driver. Do you really think that for XDP kfunc call will be cheaper?