bnxt_en: add rx_filter_miss extended stats
authorDamodharam Ammepalli <damodharam.ammepalli@broadcom.com>
Tue, 12 Dec 2023 00:51:19 +0000 (16:51 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Dec 2023 00:05:58 +0000 (16:05 -0800)
rx_filter_miss counter is newly added to the rx_port_stats_ext
stats structure for newer chips.  Newer firmware will return the
structure size that includes this counter.  Add this entry to
the bnxt_port_stats_ext_arr array and the ethtool -S code will
pick up this counter if it is supported.

Signed-off-by: Damodharam Ammepalli <damodharam.ammepalli@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20231212005122.2401-11-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

index bb9cab821587ee76a43c5bcdc2eb5bb3a3f9c5b1..45ce7e2e3662f9d8f963ee738892675769ceba9b 100644 (file)
@@ -461,6 +461,7 @@ static const struct {
        BNXT_RX_STATS_EXT_DISCARD_COS_ENTRIES,
        BNXT_RX_STATS_EXT_ENTRY(rx_fec_corrected_blocks),
        BNXT_RX_STATS_EXT_ENTRY(rx_fec_uncorrectable_blocks),
+       BNXT_RX_STATS_EXT_ENTRY(rx_filter_miss),
 };
 
 static const struct {