From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by mail.toke.dk (Postfix) with ESMTPS id 649D8A32CE8 for ; Thu, 19 Oct 2023 01:59:37 +0200 (CEST) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=YBcb3c1d Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id C0443612CF; Wed, 18 Oct 2023 23:59:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FE80C433C7; Wed, 18 Oct 2023 23:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697673575; bh=43wvTMvKEndBuSQzafrBMZPiTVttoGCygda/qQSlXC0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YBcb3c1d0jAmtXDiJuvO0aqLjTEaDRhSCuOJO2huaNZ4pr6D76JB7CNw+WT2LvBp+ YgsVTRqLYWQ1hvIqbPu6MDOuzFGJeYlWC1SKpEpTcAeYwE4fqkzV9ckHh4mS+0K3W7 apNCPQOa0xvMbbW9QeH83wNvMmpHiQV0avuMRE8szg/jzJj8MvwTOScQA673jGzuAQ c7jk1uzPxsYjhD1Gu+YZxtrnZfQ0L+tFYGOW7adHM1uAp6wHkLVUbuokvVCrUwM9XO Z4mTxMTQIFtfwz+fn4EpCnZejDQWfhUlaFAXSHzRmIzpy9Qkboomdfw+uSoiDD7Hze 6FmAsrEX4nmVw== Date: Wed, 18 Oct 2023 16:59:31 -0700 From: Jakub Kicinski To: Larysa Zaremba Message-ID: <20231018165931.1016e6c5@kernel.org> In-Reply-To: <20231012170524.21085-9-larysa.zaremba@intel.com> References: <20231012170524.21085-1-larysa.zaremba@intel.com> <20231012170524.21085-9-larysa.zaremba@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: BLHVTH2LR5HZ7CMWSEEJW5MVN4OY7DMD X-Message-ID-Hash: BLHVTH2LR5HZ7CMWSEEJW5MVN4OY7DMD X-MailFrom: kuba@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, David Ahern , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org, Willem de Bruijn , Alexei Starovoitov , Simon Horman , Tariq Toukan , Saeed Mahameed , Maciej Fijalkowski X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next v6 08/18] xdp: Add VLAN tag hint List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, 12 Oct 2023 19:05:14 +0200 Larysa Zaremba wrote: > diff --git a/include/uapi/linux/netdev.h b/include/uapi/linux/netdev.h > index 2943a151d4f1..661f603e3e43 100644 > --- a/include/uapi/linux/netdev.h > +++ b/include/uapi/linux/netdev.h > @@ -44,13 +44,16 @@ enum netdev_xdp_act { > * timestamp via bpf_xdp_metadata_rx_timestamp(). > * @NETDEV_XDP_RX_METADATA_HASH: Device is capable of exposing receive packet > * hash via bpf_xdp_metadata_rx_hash(). > + * @NETDEV_XDP_RX_METADATA_VLAN_TAG: Device is capable of exposing stripped > + * receive VLAN tag (proto and TCI) via bpf_xdp_metadata_rx_vlan_tag(). > */ > enum netdev_xdp_rx_metadata { > NETDEV_XDP_RX_METADATA_TIMESTAMP = 1, > NETDEV_XDP_RX_METADATA_HASH = 2, > + NETDEV_XDP_RX_METADATA_VLAN_TAG = 4, > > /* private: */ > - NETDEV_XDP_RX_METADATA_MASK = 3, > + NETDEV_XDP_RX_METADATA_MASK = 7, > }; > > enum { Top of this file says: /* Do not edit directly, auto-generated from: */ /* Documentation/netlink/specs/netdev.yaml */ /* YNL-GEN uapi header */ Please add your new value in Documentation/netlink/specs/netdev.yaml and then run ./tools/net/ynl/ynl-regen.sh