1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-19 21:04:26 +00:00
Alexander Lobakin 084ceda7de libeth: xdp: add .ndo_xdp_xmit() helpers
Add helpers for implementing .ndo_xdp_xmit().
Same as for XDP_TX, accumulate up to 16 DMA-mapped frames on the stack,
then flush. If DMA mapping is failed for some reason, don't try mapping
further frames, but still flush what was already prepared.
DMA address of a head frame is stored in its headroom, assuming it
has enough of it for an 8 (or 4) byte value.
In addition to @prep and @xmit driver callbacks in XDP_TX, xmit also
needs @finalize to kick the XDPSQ after filling.

Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2025-06-16 11:40:14 -07:00
..
2024-12-09 14:44:59 -08:00
2025-05-27 18:18:55 -07:00
2025-01-20 12:16:04 -08:00
2025-04-24 17:03:45 -07:00
2025-03-24 10:26:53 +00:00
2024-12-09 14:44:59 -08:00
2024-11-13 18:49:50 -08:00
2024-12-06 17:43:08 -08:00
2025-04-15 08:21:46 -07:00
2024-11-30 13:41:50 -08:00
2024-11-21 08:28:08 -08:00
2025-04-11 18:58:10 -07:00
2025-04-11 18:58:10 -07:00
2025-04-10 18:29:26 -07:00
2025-04-22 11:11:16 +02:00
2025-05-26 18:32:48 +02:00