libeth: xsk: add XSk Rx processing support
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Thu, 12 Jun 2025 16:02:32 +0000 (18:02 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 16 Jun 2025 18:40:15 +0000 (11:40 -0700)
commit5495c58c65aa3d650cccaa19dc59115b9a0069a5
tree3daff5094f628a535455e7e3884141cf937b2e58
parent40e846d122df9b299e700ec86d01ef647fc0b09f
libeth: xsk: add XSk Rx processing support

Add XSk counterparts for preparing XSk &libeth_xdp_buff (adding head and
frags), running the program, and handling the verdict, inc. XDP_PASS.
Shortcuts in comparison with regular Rx: frags and all verdicts except
XDP_REDIRECT are under unlikely() and out of line; no checks for XDP
program presence as it's always true for XSk.

Suggested-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> # optimizations
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/libeth/priv.h
drivers/net/ethernet/intel/libeth/xdp.c
drivers/net/ethernet/intel/libeth/xsk.c
include/net/libeth/xdp.h
include/net/libeth/xsk.h