summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/usbnet.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-03-16 10:27:08 -0700
committerDavid S. Miller <davem@davemloft.net>2017-03-21 15:30:24 -0700
commit37a30b435b92a6b577795c642b6326fd0ea96e3f (patch)
tree4330a3cdfc5a31e70cee01b119cd4085820dfbc7 /drivers/net/usb/usbnet.c
parentbf4e0a3db97eb882368fd82980b3b1fa0b5b9778 (diff)
net: bcmgenet: Track per TX/RX rings statistics
__bcmgenet_tx_reclaim() is currently summing TX bytes/packets in a way that is not SMP friendly, mutliples CPUs could run __bcmgenet_tx_reclaim() independently and still update stats->tx_bytes and stats->tx_packets, cloberring the other CPUs statistics. Fix this by tracking per RX and TX rings the number of bytes, packets, dropped and errors statistics, and provide a bcmgenet_get_stats() 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/net/usb/usbnet.c')
0 files changed, 0 insertions, 0 deletions