]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: move refill_err and skb_alloc_err in per-cpu stats
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 16 Feb 2020 21:07:29 +0000 (22:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 04:04:41 +0000 (20:04 -0800)
commit79e845556419e2496164053d5fc0155427b7c9a6
tree6e93319d604179e0695092e16b3b512a788ecd9d
parent8124f36ec38fbd4196d4468ea0ea354b5aa16a1b
net: mvneta: move refill_err and skb_alloc_err in per-cpu stats

mvneta_ethtool_update_stats routine is currently reporting
skb_alloc_error and refill_error only for the first rx queue.
Fix the issue moving skb_alloc_err and refill_err in
mvneta_pcpu_stats structure.
Moreover this patch will be used to introduce xdp statistics
to ethtool for the mvneta driver

Fixes: e278f36a4833 ("net: mvneta: discriminate error cause for missed packet")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c