fm10k: expose tx_timeout_count as an ethtool stat
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Apr 2015 20:27:03 +0000 (13:27 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 14 Apr 2015 22:37:28 +0000 (15:37 -0700)
Named it tx_hang_count to differentiate it from tx_hwtstamp_timeout.

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Matthew Vick <matthew.vick@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c

index 4687f3756faebc37a9ad73afbe28ba154547e1cd..45e504f6103ae7b77be1e16edbc99543123aec82 100644 (file)
@@ -84,6 +84,8 @@ static const struct fm10k_stats fm10k_gstrings_global_stats[] = {
        FM10K_STAT("mbx_rx_dwords", hw.mbx.rx_dwords),
        FM10K_STAT("mbx_rx_parse_err", hw.mbx.rx_parse_err),
 
+       FM10K_STAT("tx_hang_count", tx_timeout_count),
+
        FM10K_STAT("tx_hwtstamp_timeouts", tx_hwtstamp_timeouts),
 };