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:02 +0000
committerDaniel Borkmann <[email protected]>2023-02-01 22:30:27 +0000
commit8a11b334ec9b8088b54764424a49adb8ef1c002a (patch)
treec329557ea0fa2f0e4ba0ea54bfbae03d0714ec58 /drivers/net/ethernet/intel/ice/ice_ethtool.c
parentice: Do not call ice_finalize_xdp_rx() unnecessarily (diff)
downloadkernel-8a11b334ec9b8088b54764424a49adb8ef1c002a.tar.gz
kernel-8a11b334ec9b8088b54764424a49adb8ef1c002a.zip
ice: Use xdp->frame_sz instead of recalculating truesize
SKB path calculates truesize on three different functions, which could be avoided as xdp_buff carries the already calculated truesize under xdp_buff::frame_sz. If ice_add_rx_frag() is adjusted to take the xdp_buff as an input just like functions responsible for creating sk_buff initially, codebase could be simplified by removing these redundant recalculations and rely on xdp_buff::frame_sz instead. 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