xdp: Add VLAN tag hint
authorLarysa Zaremba <larysa.zaremba@intel.com>
Tue, 5 Dec 2023 21:08:38 +0000 (22:08 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 14 Dec 2023 00:16:40 +0000 (16:16 -0800)
commite6795330f88b4f643c649a02662d47b779340535
treeb55bc96555ae1f9d60a1bb60c89e914fb0be148d
parentd68d707dcbbf6a9cfe378fc2eb3ffffd5b47727e
xdp: Add VLAN tag hint

Implement functionality that enables drivers to expose VLAN tag
to XDP code.

VLAN tag is represented by 2 variables:
- protocol ID, which is passed to bpf code in BE
- VLAN TCI, in host byte order

Acked-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Link: https://lore.kernel.org/r/20231205210847.28460-10-larysa.zaremba@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Documentation/netlink/specs/netdev.yaml
Documentation/networking/xdp-rx-metadata.rst
include/net/xdp.h
include/uapi/linux/netdev.h
net/core/xdp.c
tools/include/uapi/linux/netdev.h
tools/net/ynl/generated/netdev-user.c