diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-03-23 10:36:46 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-24 12:53:14 -0700 |
commit | 30defeb2fb0a6219fb2c3575deb2da207b214f86 (patch) | |
tree | 22ac2f988db67987a67cf9627b1284777fd9a458 /drivers/isdn/mISDN | |
parent | 12459cbd98e7acc5748fa879b86bb4d0f8dc4aef (diff) | |
download | linux-30defeb2fb0a6219fb2c3575deb2da207b214f86.tar.gz |
net: systemport: Track per TX ring statistics
bcm_sysport_tx_reclaim_one() is currently summing TX bytes/packets in a
way that is not SMP friendly, mutliples CPUs could run
bcm_sysport_tx_reclaim_one() independently and still update
stats->tx_bytes and stats->tx_packets, cloberring the other CPUs
statistics.
Fix this by tracking per TX rings the number of bytes, packets,
dropped and errors statistics, and provide a bcm_sysport_get_nstats()
function which aggregates everything and returns a consistent output.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/mISDN')
0 files changed, 0 insertions, 0 deletions