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 9A1BF4667C; Wed, 18 Oct 2023 23:59:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YBcb3c1d" 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 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 Subject: Re: [PATCH bpf-next v6 08/18] xdp: Add VLAN tag hint 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> Precedence: bulk X-Mailing-List: bpf@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 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