summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>2024-01-24 22:16:01 +0300
committerAlexei Starovoitov <ast@kernel.org>2024-01-25 03:24:07 +0300
commita045d2f2d03d23e7db6772dd83e0ba2705dfad93 (patch)
treef8ad0da891f2214b5291635a3a18e44008067d2a /tools/perf/scripts/python/stackcollapse.py
parentfbadd83a612c3b7aad2987893faca6bd24aaebb3 (diff)
downloadlinux-a045d2f2d03d23e7db6772dd83e0ba2705dfad93.tar.xz
i40e: set xdp_rxq_info::frag_size
i40e support XDP multi-buffer so it is supposed to use __xdp_rxq_info_reg() instead of xdp_rxq_info_reg() and set the frag_size. It can not be simply converted at existing callsite because rx_buf_len could be un-initialized, so let us register xdp_rxq_info within i40e_configure_rx_ring(), which happen to be called with already initialized rx_buf_len value. Commit 5180ff1364bc ("i40e: use int for i40e_status") converted 'err' to int, so two variables to deal with return codes are not needed within i40e_configure_rx_ring(). Remove 'ret' and use 'err' to handle status from xdp_rxq_info registration. Fixes: e213ced19bef ("i40e: add support for XDP multi-buffer Rx") Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Link: https://lore.kernel.org/r/20240124191602.566724-11-maciej.fijalkowski@intel.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions