Commit 12afee80 authored by Ioana Radulescu's avatar Ioana Radulescu Committed by Greg Kroah-Hartman

staging: fsl-dpaa2/eth: Update ethtool stats names

Add a label to the ethtool statistics counters, to differentiate
between hardware counters and driver specific ones.
Signed-off-by: default avatarIoana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5206d8d1
...@@ -35,40 +35,40 @@ ...@@ -35,40 +35,40 @@
/* To be kept in sync with DPNI statistics */ /* To be kept in sync with DPNI statistics */
static char dpaa2_ethtool_stats[][ETH_GSTRING_LEN] = { static char dpaa2_ethtool_stats[][ETH_GSTRING_LEN] = {
"rx frames", "[hw] rx frames",
"rx bytes", "[hw] rx bytes",
"rx mcast frames", "[hw] rx mcast frames",
"rx mcast bytes", "[hw] rx mcast bytes",
"rx bcast frames", "[hw] rx bcast frames",
"rx bcast bytes", "[hw] rx bcast bytes",
"tx frames", "[hw] tx frames",
"tx bytes", "[hw] tx bytes",
"tx mcast frames", "[hw] tx mcast frames",
"tx mcast bytes", "[hw] tx mcast bytes",
"tx bcast frames", "[hw] tx bcast frames",
"tx bcast bytes", "[hw] tx bcast bytes",
"rx filtered frames", "[hw] rx filtered frames",
"rx discarded frames", "[hw] rx discarded frames",
"rx nobuffer discards", "[hw] rx nobuffer discards",
"tx discarded frames", "[hw] tx discarded frames",
"tx confirmed frames", "[hw] tx confirmed frames",
}; };
#define DPAA2_ETH_NUM_STATS ARRAY_SIZE(dpaa2_ethtool_stats) #define DPAA2_ETH_NUM_STATS ARRAY_SIZE(dpaa2_ethtool_stats)
static char dpaa2_ethtool_extras[][ETH_GSTRING_LEN] = { static char dpaa2_ethtool_extras[][ETH_GSTRING_LEN] = {
/* per-cpu stats */ /* per-cpu stats */
"tx conf frames", "[drv] tx conf frames",
"tx conf bytes", "[drv] tx conf bytes",
"tx sg frames", "[drv] tx sg frames",
"tx sg bytes", "[drv] tx sg bytes",
"rx sg frames", "[drv] rx sg frames",
"rx sg bytes", "[drv] rx sg bytes",
"enqueue portal busy", "[drv] enqueue portal busy",
/* Channel stats */ /* Channel stats */
"dequeue portal busy", "[drv] dequeue portal busy",
"channel pull errors", "[drv] channel pull errors",
"cdan", "[drv] cdan",
}; };
#define DPAA2_ETH_NUM_EXTRA_STATS ARRAY_SIZE(dpaa2_ethtool_extras) #define DPAA2_ETH_NUM_EXTRA_STATS ARRAY_SIZE(dpaa2_ethtool_extras)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment