diff options
author | Larysa Zaremba <larysa.zaremba@intel.com> | 2023-12-06 00:08:37 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-12-14 03:16:40 +0300 |
commit | d68d707dcbbf6a9cfe378fc2eb3ffffd5b47727e (patch) | |
tree | 00eb777aa55d27b8cd877e530f839a8ba80b91d7 /Documentation/networking/xdp-rx-metadata.rst | |
parent | b4e352ff1169ebce930c734630f9587b1677d163 (diff) | |
download | linux-d68d707dcbbf6a9cfe378fc2eb3ffffd5b47727e.tar.xz |
ice: Support XDP hints in AF_XDP ZC mode
In AF_XDP ZC, xdp_buff is not stored on ring,
instead it is provided by xsk_buff_pool.
Space for metadata sources right after such buffers was already reserved
in commit 94ecc5ca4dbf ("xsk: Add cb area to struct xdp_buff_xsk").
Some things (such as pointer to packet context) do not change on a
per-packet basis, so they can be set at the same time as RX queue info.
On the other hand, RX descriptor is unique for each packet, but is already
known when setting DMA addresses. This minimizes performance impact of
hints on regular packet processing.
Update AF_XDP ZC packet processing to support XDP hints.
Co-developed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/r/20231205210847.28460-9-larysa.zaremba@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation/networking/xdp-rx-metadata.rst')
0 files changed, 0 insertions, 0 deletions