libeth: xdp: add XDPSQE completion helpers
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Thu, 12 Jun 2025 16:02:23 +0000 (18:02 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 16 Jun 2025 18:40:14 +0000 (11:40 -0700)
commit26ce8eb0bb7d47c5fb36f7c12f34e4a320f14cac
tree557360c744c3bb285c27c96d4410832cd67cb713
parent084ceda7decdbeff2bafbe2d28f57aed50b3bc46
libeth: xdp: add XDPSQE completion helpers

Similarly to libeth_tx_complete(), add libeth_xdp_complete_tx() to
handle XDP_TX and xmit buffers. Both use bulk return under the hood.

Also add out of line libeth_tx_complete_any() which handles both
regular and XDP frames (if libeth_xdp is loaded), for example,
to call on queue destroy, where we don't need inlining but
convenience.

Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/libeth/Makefile
drivers/net/ethernet/intel/libeth/priv.h [new file with mode: 0644]
drivers/net/ethernet/intel/libeth/tx.c [new file with mode: 0644]
drivers/net/ethernet/intel/libeth/xdp.c
include/net/libeth/tx.h
include/net/libeth/types.h
include/net/libeth/xdp.h