diff options
author | Simon Horman <horms@kernel.org> | 2024-10-10 12:04:11 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-10-14 13:20:41 +0100 |
commit | 4a7b2ba94a59d188e0ab1e5b0ea5a71a23b787fa (patch) | |
tree | 479da16f6f2c14a1f3d36c03d097a3853338541d /net/ipv4/tcp_output.c | |
parent | 5c16e118b796e95d6e5c80c5d8af2591262431c9 (diff) | |
download | linux-4a7b2ba94a59d188e0ab1e5b0ea5a71a23b787fa.tar.gz linux-4a7b2ba94a59d188e0ab1e5b0ea5a71a23b787fa.tar.bz2 linux-4a7b2ba94a59d188e0ab1e5b0ea5a71a23b787fa.zip |
net: ethernet: ti: am65-cpsw: Use tstats instead of open coded version
Make use of struct pcpu_sw_netstats and related helpers to handle
existing per-cpu stats for this driver - the exact same counters
are maintained.
A side effect of this change is to address __percpu warnings
flagged by Sparse:
.../am65-cpsw-nuss.c:2658:55: warning: incorrect type in initializer (different address spaces)
.../am65-cpsw-nuss.c:2658:55: expected struct am65_cpsw_ndev_stats [noderef] __percpu *stats
.../am65-cpsw-nuss.c:2658:55: got void *data
.../am65-cpsw-nuss.c:2781:15: warning: incorrect type in argument 3 (different address spaces)
.../am65-cpsw-nuss.c:2781:15: expected void *data
.../am65-cpsw-nuss.c:2781:15: got struct am65_cpsw_ndev_stats [noderef] __percpu *stats
Compile tested only.
No functional change intended.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/all/20240911170643.7ecb1bbb@kernel.org/
Signed-off-by: Simon Horman <horms@kernel.org>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions