diff options
author | Larysa Zaremba <larysa.zaremba@intel.com> | 2023-12-05 22:08:38 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-12-14 01:16:40 +0100 |
commit | e6795330f88b4f643c649a02662d47b779340535 (patch) | |
tree | b55bc96555ae1f9d60a1bb60c89e914fb0be148d /Documentation/networking | |
parent | ice: Support XDP hints in AF_XDP ZC mode (diff) | |
download | linux-e6795330f88b4f643c649a02662d47b779340535.tar.xz linux-e6795330f88b4f643c649a02662d47b779340535.zip |
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>
Diffstat (limited to 'Documentation/networking')
-rw-r--r-- | Documentation/networking/xdp-rx-metadata.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/networking/xdp-rx-metadata.rst b/Documentation/networking/xdp-rx-metadata.rst index e3e9420fd817..a6e0ece18be5 100644 --- a/Documentation/networking/xdp-rx-metadata.rst +++ b/Documentation/networking/xdp-rx-metadata.rst @@ -20,7 +20,13 @@ Currently, the following kfuncs are supported. In the future, as more metadata is supported, this set will grow: .. kernel-doc:: net/core/xdp.c - :identifiers: bpf_xdp_metadata_rx_timestamp bpf_xdp_metadata_rx_hash + :identifiers: bpf_xdp_metadata_rx_timestamp + +.. kernel-doc:: net/core/xdp.c + :identifiers: bpf_xdp_metadata_rx_hash + +.. kernel-doc:: net/core/xdp.c + :identifiers: bpf_xdp_metadata_rx_vlan_tag An XDP program can use these kfuncs to read the metadata into stack variables for its own consumption. Or, to pass the metadata on to other |