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:28 +0000
committerTony Nguyen <[email protected]>2025-06-16 18:40:15 +0000
commit1bb635d3748b7158c6a19e6fca4fb85e6f96fd9a (patch)
tree212da53ae55b3aac9f0262dffbd235baf39f2aa8 /drivers/net/ethernet/intel/ice/ice_common.c
parentlibeth: xdp: add XDP prog run and verdict result handling (diff)
downloadkernel-1bb635d3748b7158c6a19e6fca4fb85e6f96fd9a.tar.gz
kernel-1bb635d3748b7158c6a19e6fca4fb85e6f96fd9a.zip
libeth: xdp: add templates for building driver-side callbacks
Defining driver-specific functions to pass to libeth_xdp functions can induce boilerplates and/or look a bit cryptic with all those layers of indirection. On the other hand, this indirection is needed to allow compilers to uninline big functions even when passed to __always_inline helpers (too much inlining also hurts performance in some cases), plus to reuse some XDP helpers in XSk code. Add macros to quickly build them, with the detailed kdoc. They take names of the actual callbacks for filling a Tx descriptor and other purely HW-specific things and wrap them appropriately. LIBETH_XDP_DEFINE_{BEGIN,END}() is needed for GCC 8+ unfortunately to let the drivers control which functions will be static and which global without hitting `-Wold-style-declaration`. 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