]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8edd324507687b68aa84cfc264fd06dcb8edaf30
tree054f5827b7c4697ee36cff84b7ed3e3e84a85672
parentf1b0fd63c3e6315f548d64a5447d863280062f28
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