linux-yocto/include/net/libeth
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
..
cache.h libeth: add cacheline / struct layout assertion helpers 2024-07-10 10:29:53 -07:00
rx.h libeth: support native XDP and register memory model 2025-06-16 11:40:14 -07:00
tx.h libeth: xdp: add .ndo_xdp_xmit() helpers 2025-06-16 11:40:14 -07:00
types.h libeth: add Tx buffer completion helpers 2024-09-09 13:15:37 -07:00
xdp.h libeth: xdp: add .ndo_xdp_xmit() helpers 2025-06-16 11:40:14 -07:00