aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorBjörn Töpel <[email protected]>2018-08-24 13:21:59 +0200
committerJeff Kirsher <[email protected]>2018-08-30 13:53:04 -0700
commitcdec2141c24ef177d929765c5a6f95549c266fb3 (patch)
treebe795e163eda8b15d90b30ff90a88749c703fa35 /tools/perf/scripts/python/sctop.py
parentcfe396991ad7763bd82e3b976b218ef59c777022 (diff)
i40e: report correct statistics when XDP is enabled
When XDP is enabled, the driver will report incorrect statistics. Received frames will reported as transmitted frames. This commits fixes the i40e implementation of ndo_get_stats64 (struct net_device_ops), so that iproute2 will report correct statistics (e.g. when running "ip -stats link show dev eth0") even when XDP is enabled. Reported-by: Jesper Dangaard Brouer <[email protected]> Fixes: 74608d17fe29 ("i40e: add support for XDP_TX action") Signed-off-by: Björn Töpel <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions