Files
linux/drivers/net
Florian Fainelli 37a30b435b 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>
2017-03-21 15:30:24 -07:00
..
2017-02-27 18:43:47 -08:00
2017-03-16 21:39:51 -07:00
2017-02-11 20:59:41 -05:00
2017-03-08 22:19:17 -08:00
2017-03-16 10:13:59 -07:00
2017-03-13 21:53:48 -07:00
2017-03-01 09:58:31 -08:00
2017-03-13 13:04:31 -07:00
2017-02-11 20:59:41 -05:00