diff options
| author | 2017-03-16 10:27:08 -0700 | |
|---|---|---|
| committer | 2017-03-21 15:30:24 -0700 | |
| commit | 37a30b435b92a6b577795c642b6326fd0ea96e3f (patch) | |
| tree | 4330a3cdfc5a31e70cee01b119cd4085820dfbc7 /drivers/net/usb/usbnet.c | |
| parent | net: ipv4: add support for ECMP hash policy choice (diff) | |
| download | wireguard-linux-37a30b435b92a6b577795c642b6326fd0ea96e3f.tar.xz wireguard-linux-37a30b435b92a6b577795c642b6326fd0ea96e3f.zip | |
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
