Skip to content

Commit 8581362

Browse files
IoanaCiorneidavem330
authored andcommitted
dpaa2-switch: add a prefix to HW ethtool stats
In the next patch, we'll add support for also exporting the MAC statistics in the ethtool stats. Annotate already present HW stats with a suggestive prefix. Signed-off-by: Ioana Ciornei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 84cba72 commit 8581362

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-ethtool.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ static struct {
1515
enum dpsw_counter id;
1616
char name[ETH_GSTRING_LEN];
1717
} dpaa2_switch_ethtool_counters[] = {
18-
{DPSW_CNT_ING_FRAME, "rx frames"},
19-
{DPSW_CNT_ING_BYTE, "rx bytes"},
20-
{DPSW_CNT_ING_FLTR_FRAME, "rx filtered frames"},
21-
{DPSW_CNT_ING_FRAME_DISCARD, "rx discarded frames"},
22-
{DPSW_CNT_ING_BCAST_FRAME, "rx b-cast frames"},
23-
{DPSW_CNT_ING_BCAST_BYTES, "rx b-cast bytes"},
24-
{DPSW_CNT_ING_MCAST_FRAME, "rx m-cast frames"},
25-
{DPSW_CNT_ING_MCAST_BYTE, "rx m-cast bytes"},
26-
{DPSW_CNT_EGR_FRAME, "tx frames"},
27-
{DPSW_CNT_EGR_BYTE, "tx bytes"},
28-
{DPSW_CNT_EGR_FRAME_DISCARD, "tx discarded frames"},
29-
{DPSW_CNT_ING_NO_BUFF_DISCARD, "rx discarded no buffer frames"},
18+
{DPSW_CNT_ING_FRAME, "[hw] rx frames"},
19+
{DPSW_CNT_ING_BYTE, "[hw] rx bytes"},
20+
{DPSW_CNT_ING_FLTR_FRAME, "[hw] rx filtered frames"},
21+
{DPSW_CNT_ING_FRAME_DISCARD, "[hw] rx discarded frames"},
22+
{DPSW_CNT_ING_BCAST_FRAME, "[hw] rx bcast frames"},
23+
{DPSW_CNT_ING_BCAST_BYTES, "[hw] rx bcast bytes"},
24+
{DPSW_CNT_ING_MCAST_FRAME, "[hw] rx mcast frames"},
25+
{DPSW_CNT_ING_MCAST_BYTE, "[hw] rx mcast bytes"},
26+
{DPSW_CNT_EGR_FRAME, "[hw] tx frames"},
27+
{DPSW_CNT_EGR_BYTE, "[hw] tx bytes"},
28+
{DPSW_CNT_EGR_FRAME_DISCARD, "[hw] tx discarded frames"},
29+
{DPSW_CNT_ING_NO_BUFF_DISCARD, "[hw] rx nobuffer discards"},
3030
};
3131

3232
#define DPAA2_SWITCH_NUM_COUNTERS ARRAY_SIZE(dpaa2_switch_ethtool_counters)

0 commit comments

Comments
 (0)