Re: [PATCH net-next] net: bcmgenet: Track per TX/RX rings statistics

2017-03-21 Thread David Miller
From: Florian Fainelli Date: Thu, 16 Mar 2017 10:27:08 -0700 > __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

[PATCH net-next] net: bcmgenet: Track per TX/RX rings statistics

2017-03-16 Thread Florian Fainelli
__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