net: mvneta: move rx_dropped and rx_errors in per-cpu stats
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 6 Feb 2020 09:14:39 +0000 (10:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:34:15 +0000 (04:34 -0800)
commitaf746042b58d7b06ee910dec48fdb196b60d6180
tree39ea809657e97948bc9ef6309899ec3cad64756e
parentfbd4c421b53a4b9128219d59e813e9f3015cf1ee
net: mvneta: move rx_dropped and rx_errors in per-cpu stats

[ Upstream commit c35947b8ff8acca33134ee39c31708233765c31a ]

Move rx_dropped and rx_errors counters in mvneta_pcpu_stats in order to
avoid possible races updating statistics

Fixes: 562e2f467e71 ("net: mvneta: Improve the buffer allocation method for SWBM")
Fixes: dc35a10f68d3 ("net: mvneta: bm: add support for hardware buffer management")
Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP network unit")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/mvneta.c