]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
igbvf: remove redundant counter rx_long_byte_count from ethtool statistics
authorKohei Enju <enjuk@amazon.com>
Mon, 18 Aug 2025 15:18:27 +0000 (00:18 +0900)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 3 Sep 2025 17:07:27 +0000 (10:07 -0700)
rx_long_byte_count shows the value of the GORC (Good Octets Received
Count) register. However, the register value is already shown as
rx_bytes and they always show the same value.

Remove rx_long_byte_count as the Intel ethernet driver e1000e did in
commit 0a939912cf9c ("e1000e: cleanup redundant statistics counter").

Tested on Intel Corporation I350 Gigabit Network Connection.

Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Kohei Enju <enjuk@amazon.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igbvf/ethtool.c

index c6defc495f13a060f7c3b27e57612dd10c6b19af..9c08ebfad8040733bd3d6c92a61449e9d0b26dc3 100644 (file)
@@ -36,7 +36,6 @@ static const struct igbvf_stats igbvf_gstrings_stats[] = {
        { "lbtx_bytes", IGBVF_STAT(stats.gotlbc, stats.base_gotlbc) },
        { "tx_restart_queue", IGBVF_STAT(restart_queue, zero_base) },
        { "tx_timeout_count", IGBVF_STAT(tx_timeout_count, zero_base) },
-       { "rx_long_byte_count", IGBVF_STAT(stats.gorc, stats.base_gorc) },
        { "rx_csum_offload_good", IGBVF_STAT(hw_csum_good, zero_base) },
        { "rx_csum_offload_errors", IGBVF_STAT(hw_csum_err, zero_base) },
        { "rx_header_split", IGBVF_STAT(rx_hdr_split, zero_base) },