projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c4aa45
)
ixgbe: Add receive length error counter
author
Tonghao Zhang
<
[email protected]
>
Wed, 28 Feb 2018 11:59:09 +0000
(
03:59
-0800)
committer
Jeff Kirsher
<
[email protected]
>
Mon, 12 Mar 2018 18:03:32 +0000
(11:03 -0700)
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]
>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
index 89edb9fae6f0c8055ef878ac0528b30263c9f5d3..c0e6ab42e0e1dac088f0496fc3fbbc0a65ede993 100644
(file)
--- a/
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
+++ b/
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
@@
-97,6
+97,7
@@
static const struct ixgbe_stats ixgbe_gstrings_stats[] = {
{"tx_heartbeat_errors", IXGBE_NETDEV_STAT(tx_heartbeat_errors)},
{"tx_timeout_count", IXGBE_STAT(tx_timeout_count)},
{"tx_restart_queue", IXGBE_STAT(restart_queue)},
+ {"rx_length_errors", IXGBE_STAT(stats.rlec)},
{"rx_long_length_errors", IXGBE_STAT(stats.roc)},
{"rx_short_length_errors", IXGBE_STAT(stats.ruc)},
{"tx_flow_control_xon", IXGBE_STAT(stats.lxontxc)},