aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_ethtool.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <[email protected]>2023-01-31 20:45:01 +0000
committerDaniel Borkmann <[email protected]>2023-02-01 22:30:27 +0000
commit9070fe3da0b126044c3cffd169d5fb2565365a0e (patch)
tree3c372fa36bdfbc729c7719ea085b1f7dde25313d /drivers/net/ethernet/intel/ice/ice_ethtool.c
parentice: Use ice_max_xdp_frame_size() in ice_xdp_setup_prog() (diff)
downloadkernel-9070fe3da0b126044c3cffd169d5fb2565365a0e.tar.gz
kernel-9070fe3da0b126044c3cffd169d5fb2565365a0e.zip
ice: Do not call ice_finalize_xdp_rx() unnecessarily
Currently ice_finalize_xdp_rx() is called only when xdp_prog is present on VSI, which is a good thing. However, this optimization can be enhanced and check only if any of the XDP_TX/XDP_REDIRECT took place in current Rx processing. Non-zero value of @xdp_xmit indicates that xdp_prog is present on VSI. This way XDP_DROP-based workloads will not suffer from unnecessary calls to external function. Signed-off-by: Maciej Fijalkowski <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Alexander Lobakin <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ethtool.c')
0 files changed, 0 insertions, 0 deletions