diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2023-01-04 14:57:12 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-05 21:38:29 -0800 |
commit | c7030d14c78e634b94616a08f4961d767f645834 (patch) | |
tree | cc44f4e48cf1c4a8bf90250a19fc8f184420ae66 /tools/perf/scripts/python/task-analyzer.py | |
parent | 59cc773a352c0c7c7aa96fbd645fe36ffc193e55 (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 <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions