diff options
author | Kurt Kanzenbach <[email protected]> | 2023-01-14 13:04:37 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-01-16 13:10:04 +0000 |
commit | c296c77efb66994d94d9f706446a115581226550 (patch) | |
tree | d88ba2494a02087bd2bbd57cdd2be4d15a30de79 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | a22b7388d658ecfcd226600c8c34ce4481e88655 (diff) |
net: stmmac: Fix queue statistics reading
Correct queue statistics reading. All queue statistics are stored as unsigned
long values. The retrieval for ethtool fetches these values as u64. However, on
some systems the size of the counters are 32 bit. That yields wrong queue
statistic counters e.g., on arm32 systems such as the stm32mp157. Fix it by
using the correct data type.
Tested on Olimex STMP157-OLinuXino-LIME2 by simple running linuxptp for a short
period of time:
Non-patched kernel:
|root@st1:~# ethtool -S eth0 | grep q0
| q0_tx_pkt_n: 3775276254951 # ???
| q0_tx_irq_n: 879
| q0_rx_pkt_n: 1194000908909 # ???
| q0_rx_irq_n: 278
Patched kernel:
|root@st1:~# ethtool -S eth0 | grep q0
| q0_tx_pkt_n: 2434
| q0_tx_irq_n: 1274
| q0_rx_pkt_n: 1604
| q0_rx_irq_n: 846
Fixes: 68e9c5dee1cf ("net: stmmac: add ethtool per-queue statistic framework")
Signed-off-by: Kurt Kanzenbach <[email protected]>
Cc: Vijayakannan Ayyathurai <[email protected]>
Cc: Wong Vee Khee <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions