OSDN Git Service

net: mvpp2: add ethtool GOP statistics
authorMiquel Raynal <miquel.raynal@free-electrons.com>
Mon, 6 Nov 2017 21:56:53 +0000 (22:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 04:54:28 +0000 (13:54 +0900)
commit118d6298f6f0556e54331a6e86de2313d134fdbb
tree054f5827b7c4697ee36cff84b7ed3e3e84a85672
parent403466feb1ac978a734518f7cee3cd9e63cb773c
net: mvpp2: add ethtool GOP statistics

Add ethtool statistics support by reading the GOP statistics from the
hardware counters. Also implement a workqueue to gather the statistics
every second or some 32-bit counters could overflow.

Suggested-by: Stefan Chulski <stefanc@marvell.com>
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c