diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2023-06-15 00:20:35 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-15 22:56:46 -0700 |
commit | 18da174d865a87d47d2f33f5b0a322efcf067728 (patch) | |
tree | 5427fa9b26c8f89e11c014afa35371019353d06d /drivers/s390/net | |
parent | 7deb0c3c24c474e0b79ea03f965b91c9cb1ba08f (diff) | |
download | linux-18da174d865a87d47d2f33f5b0a322efcf067728.tar.gz linux-18da174d865a87d47d2f33f5b0a322efcf067728.tar.bz2 linux-18da174d865a87d47d2f33f5b0a322efcf067728.zip |
net: ethernet: litex: add support for 64 bit stats
Implement 64 bit per cpu stats to fix the overflow of netdev->stats
on 32 bit platforms. To simplify the code, we use net core
pcpu_sw_netstats infrastructure. One small drawback is some memory
overhead because litex uses just one queue, but we allocate the
counters per cpu.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Gabriel Somlo <gsomlo@gmail.com>
Link: https://lore.kernel.org/r/20230614162035.300-1-jszhang@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/s390/net')
0 files changed, 0 insertions, 0 deletions