]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd982e38bc77baf24abc4e2aba7e7bd6337691362
treea1f7477284e8d74cf019bb2c5265b24ded07372b
parentf88c4ab1cc5e80d9cc54f42ebd38a37610524f93
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: 0db0df595cbd ("net: mvneta: Improve the buffer allocation method for SWBM")
Fixes: 086ca6252cc3 ("net: mvneta: bm: add support for hardware buffer management")
Fixes: 74510ae74238 ("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