]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: Add support for more ethtool counters
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Mon, 10 Jun 2019 08:55:29 +0000 (10:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 16:12:52 +0000 (09:12 -0700)
commit03edfee71ed162c1dee3c8c1361d4e2ca234e583
tree56f44b636845512c95871ef1da9a800d4b02a20a
parent947e2e10cf84c51726893e83abf190e1f451cff9
net: mvpp2: Add support for more ethtool counters

Besides the MIB counters, some other useful counters can be exposed to
the user. This commit adds support for :

 - Per-port counters, that indicate FIFO drops and classifier drops,
 - Per-rxq counters,
 - Per-txq counters

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c