summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@kernel.org>2025-02-10 17:52:16 +0300
committerJakub Kicinski <kuba@kernel.org>2025-02-13 07:12:58 +0300
commit8a9f82ff15da03a6804cdd6557fb36ff71c0924f (patch)
tree9840c7046767c4a09e402b3820425058789189e8 /scripts/gdb/linux/utils.py
parent5db843258de1e4e6b1ef1cbd1797923c9e3de548 (diff)
downloadlinux-8a9f82ff15da03a6804cdd6557fb36ff71c0924f.tar.xz
net: ethernet: ti: am65-cpsw: fix RX & TX statistics for XDP_TX case
For successful XDP_TX and XDP_REDIRECT cases, the packet was received successfully so update RX statistics. Use original received packet length for that. TX packets statistics are incremented on TX completion so don't update it while TX queueing. If xdp_convert_buff_to_frame() fails, increment tx_dropped. Signed-off-by: Roger Quadros <rogerq@kernel.org> Fixes: 8acacc40f733 ("net: ethernet: ti: am65-cpsw: Add minimal XDP support") Link: https://patch.msgid.link/20250210-am65-cpsw-xdp-fixes-v1-2-ec6b1f7f1aca@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions