aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <[email protected]>2023-01-04 14:57:12 +0100
committerJakub Kicinski <[email protected]>2023-01-05 21:38:29 -0800
commitc7030d14c78e634b94616a08f4961d767f645834 (patch)
treecc44f4e48cf1c4a8bf90250a19fc8f184420ae66 /lib/memory-notifier-error-inject.c
parent59cc773a352c0c7c7aa96fbd645fe36ffc193e55 (diff)
net: ethernet: enetc: do not always access skb_shared_info in the XDP path
Move XDP skb_shared_info structure initialization in from enetc_map_rx_buff_to_xdp() to enetc_add_rx_buff_to_xdp() and do not always access skb_shared_info in the xdp_buff/xdp_frame since it is located in a different cacheline with respect to hard_start and data xdp pointers. Rely on XDP_FLAGS_HAS_FRAGS flag to check if it really necessary to access non-linear part of the xdp_buff/xdp_frame. Reviewed-by: Vladimir Oltean <[email protected]> Tested-by: Vladimir Oltean <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions