bnxt_en: Include additional hardware port statistics in ethtool -S.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Sat, 31 Mar 2018 17:54:11 +0000 (13:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 03:24:19 +0000 (23:24 -0400)
Include additional hardware port statistics in ethtool -S, which
are useful for debugging.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

index 7af01a565741ec881483b72c2c212d038b5564fd..859d4c0b5b314f96927cb49de5c08824ab801f81 100644 (file)
@@ -181,6 +181,8 @@ static const struct {
        BNXT_RX_STATS_ENTRY(rx_bytes),
        BNXT_RX_STATS_ENTRY(rx_runt_bytes),
        BNXT_RX_STATS_ENTRY(rx_runt_frames),
+       BNXT_RX_STATS_ENTRY(rx_stat_discard),
+       BNXT_RX_STATS_ENTRY(rx_stat_err),
 
        BNXT_TX_STATS_ENTRY(tx_64b_frames),
        BNXT_TX_STATS_ENTRY(tx_65b_127b_frames),
@@ -216,6 +218,9 @@ static const struct {
        BNXT_TX_STATS_ENTRY(tx_eee_lpi_duration),
        BNXT_TX_STATS_ENTRY(tx_total_collisions),
        BNXT_TX_STATS_ENTRY(tx_bytes),
+       BNXT_TX_STATS_ENTRY(tx_xthol_frames),
+       BNXT_TX_STATS_ENTRY(tx_stat_discard),
+       BNXT_TX_STATS_ENTRY(tx_stat_error),
 };
 
 #define BNXT_NUM_PORT_STATS ARRAY_SIZE(bnxt_port_stats_arr)