staging: dpaa2-switch: export the 'no buffer' counter in ethtool
authorIonut-robert Aron <ionut-robert.aron@nxp.com>
Thu, 19 Nov 2020 16:50:15 +0000 (18:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Nov 2020 17:02:08 +0000 (18:02 +0100)
commit54289aad812e83a6e416b49c121a1a805d94cd6a
treed46c101bf7d550f89dfc89eb7177ffec9529971a
parent8a3f7b9665c8194f32afec9a7bb60e2376f896c6
staging: dpaa2-switch: export the 'no buffer' counter in ethtool

Export the DPSW_CNT_ING_NO_BUFFER_DISCARD counter in ethtool for each
switch interface. This is useful for debugging purposes.

Signed-off-by: Ionut-robert Aron <ionut-robert.aron@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20201119165017.806696-2-ciorneiioana@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h
drivers/staging/fsl-dpaa2/ethsw/dpsw.h
drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c