]> asedeno.scripts.mit.edu Git - linux.git/commit
dpaa2-eth: add ethtool MAC counters
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 7 Nov 2019 10:44:48 +0000 (12:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 23:31:53 +0000 (15:31 -0800)
commit991df1fbb0dc3b44a88b4775b32d95839bf779e6
treee2e922d4388dbda32d3bbe4b680c3ac90fe59616
parent88c8562b16a031045acb519fcbaae9908f323017
dpaa2-eth: add ethtool MAC counters

When a DPNI is connected to a MAC, export its associated counters.
Ethtool related functions are added in dpaa2_mac for returning the
number of counters, their strings and also their values.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h
drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h
drivers/net/ethernet/freescale/dpaa2/dpmac.c
drivers/net/ethernet/freescale/dpaa2/dpmac.h