]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: rely on struct mvneta_stats in mvneta_update_stats routine
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 16 Feb 2020 21:07:31 +0000 (22:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 04:04:42 +0000 (20:04 -0800)
commitcf9dd9fd5efd764edfe9ae8e3a07d4a2e4754f35
treebc46fd2c7772384aae44e89706d42dd4419f71a1
parent797f3a89c44fa6b67c5615c9d30b6c9629d30eaf
net: mvneta: rely on struct mvneta_stats in mvneta_update_stats routine

Introduce mvneta_stats structure in mvneta_update_stats routine signature
in order to collect all the rx stats and update them at the end at the
napi loop. mvneta_stats will be reused adding xdp statistics support to
ethtool.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c