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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Feb 2020 10:29:38 +0000 (11:29 +0100)
commitc35947b8ff8acca33134ee39c31708233765c31a
treea1f7477284e8d74cf019bb2c5265b24ded07372b
parent45a8317ed2c6f0d33a89367ec5d36e4e3aa46576
net: mvneta: move rx_dropped and rx_errors in per-cpu stats

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>
drivers/net/ethernet/marvell/mvneta.c