libeth: xsk: add XSk XDP_TX sending helpers
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Thu, 12 Jun 2025 16:02:30 +0000 (18:02 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 16 Jun 2025 18:40:15 +0000 (11:40 -0700)
commitb3ad8450b4dc46c4ab0641f665068fd2a4d1adba
treec247dea466dc50ae76b41b13837d43028307336a
parent576cc5c13d9ba53a1a24d9b34af2f939a87b7ce8
libeth: xsk: add XSk XDP_TX sending helpers

Add Xsk counterparts for XDP_TX buffer sending and completion.
The same base structures and functions used from the libeth_xdp core,
with adjustments to that XSk Rx always operates on &xdp_buff_xsk for
both head and frags. And unlike regular Rx, here unlikely() are used
for frags, as the header split gives no benefits for XSk Rx, at
least for now.

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