Skip to content

Commit 39f59bc

Browse files
Jerry0443kuba-moo
authored andcommitted
dsa: lan9303: Correct stat name
This patch changes the reported ethtool statistics for the lan9303 family of parts covered by this driver. The TxUnderRun statistic label is renamed to RxShort to accurately reflect what stat the device is reporting. I did not reorder the statistics as that might cause problems with existing user code that are expecting the stats at a certain offset. Fixes: a129259 ("net: dsa: add new DSA switch driver for the SMSC-LAN9303") Signed-off-by: Jerry Ray <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 02f248e commit 39f59bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/lan9303-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ static const struct lan9303_mib_desc lan9303_mib[] = {
961961
{ .offset = LAN9303_MAC_TX_BRDCST_CNT_0, .name = "TxBroad", },
962962
{ .offset = LAN9303_MAC_TX_PAUSE_CNT_0, .name = "TxPause", },
963963
{ .offset = LAN9303_MAC_TX_MULCST_CNT_0, .name = "TxMulti", },
964-
{ .offset = LAN9303_MAC_RX_UNDSZE_CNT_0, .name = "TxUnderRun", },
964+
{ .offset = LAN9303_MAC_RX_UNDSZE_CNT_0, .name = "RxShort", },
965965
{ .offset = LAN9303_MAC_TX_64_CNT_0, .name = "Tx64Byte", },
966966
{ .offset = LAN9303_MAC_TX_127_CNT_0, .name = "Tx128Byte", },
967967
{ .offset = LAN9303_MAC_TX_255_CNT_0, .name = "Tx256Byte", },

0 commit comments

Comments
 (0)