Skip to content

Commit e656805

Browse files
hao022Jeff Kirsher
authored andcommitted
ixgbe: Add receive length error counter
ixgbe enabled rlec counter and the rx_error used it. We can export the counter directly via ethtool -S ethX. Signed-off-by: Tonghao Zhang <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 5c4aa45 commit e656805

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ static const struct ixgbe_stats ixgbe_gstrings_stats[] = {
9797
{"tx_heartbeat_errors", IXGBE_NETDEV_STAT(tx_heartbeat_errors)},
9898
{"tx_timeout_count", IXGBE_STAT(tx_timeout_count)},
9999
{"tx_restart_queue", IXGBE_STAT(restart_queue)},
100+
{"rx_length_errors", IXGBE_STAT(stats.rlec)},
100101
{"rx_long_length_errors", IXGBE_STAT(stats.roc)},
101102
{"rx_short_length_errors", IXGBE_STAT(stats.ruc)},
102103
{"tx_flow_control_xon", IXGBE_STAT(stats.lxontxc)},

0 commit comments

Comments
 (0)