aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_common.c
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2025-06-12 16:02:31 +0000
committerTony Nguyen <[email protected]>2025-06-16 18:40:15 +0000
commit40e846d122df9b299e700ec86d01ef647fc0b09f (patch)
treeda6b9259b1ea62f844ce8a6e8243b14182acc91d /drivers/net/ethernet/intel/ice/ice_common.c
parentlibeth: xsk: add XSk XDP_TX sending helpers (diff)
downloadkernel-40e846d122df9b299e700ec86d01ef647fc0b09f.tar.gz
kernel-40e846d122df9b299e700ec86d01ef647fc0b09f.zip
libeth: xsk: add XSk xmit functions
Reuse core sending functions to send XSk xmit frames. Both metadata and no metadata pools/driver are supported. libeth_xdp also provides generic XSk metadata ops, currently with the checksum offload only and for cases when HW doesn't require supplying L3/L4 checksum offsets. Drivers are free to pass their own ops. &libeth_xdp_tx_bulk is not used here as it would be redundant; pool->tx_descs are accessed directly. Fake "libeth_xsktmo" is needed to hide implementation details from the drivers when they want to use the generic ops: the original struct is defined in the same file where dev->xsk_tx_metadata_ops gets set to avoid duplication of slowpath; at the same time; XSk xmit functions use local "fast" copy to inline XMO callbacks. Tx descriptor filling loop is unrolled by 8. Suggested-by: Maciej Fijalkowski <[email protected]> # optimizations Signed-off-by: Alexander Lobakin <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
0 files changed, 0 insertions, 0 deletions