ixgbevf: add tx counters
authorEmil Tantilov <emil.s.tantilov@intel.com>
Sat, 18 Jan 2014 02:30:02 +0000 (18:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jan 2014 03:15:10 +0000 (19:15 -0800)
This patch adds counters for tx_restart_queue and tx_timeout_count.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbevf/ethtool.c

index b48df7802208749615e921f31ffedd2e65848cb5..f68b78c732a8626c3c011a6d83329c3779fccc51 100644 (file)
@@ -77,6 +77,8 @@ static const struct ixgbe_stats ixgbe_gstrings_stats[] = {
        {"tx_bytes", IXGBEVF_STAT(stats.vfgotc, stats.base_vfgotc,
                                  stats.saved_reset_vfgotc)},
        {"tx_busy", IXGBEVF_ZSTAT(tx_busy)},
+       {"tx_restart_queue", IXGBEVF_ZSTAT(restart_queue)},
+       {"tx_timeout_count", IXGBEVF_ZSTAT(tx_timeout_count)},
        {"multicast", IXGBEVF_STAT(stats.vfmprc, stats.base_vfmprc,
                                   stats.saved_reset_vfmprc)},
        {"rx_csum_offload_errors", IXGBEVF_ZSTAT(hw_csum_rx_error)},