i40e: display priority_xon and priority_xoff stats
authorAlice Michael <alice.michael@intel.com>
Fri, 27 Oct 2017 15:06:48 +0000 (11:06 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 10 Jan 2018 20:41:21 +0000 (12:41 -0800)
Display some more stats that were already being counted, to help users
understand when priority xon/xoff packets are being sent/received

Signed-off-by: Alice Michael <alice.michael@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c

index cfd788b4fd7a0bf53589bc1312d5236f9143c004..34173f821fd90c6dd5b63c0aead27391eada268c 100644 (file)
@@ -126,6 +126,10 @@ static const struct i40e_stats i40e_gstrings_stats[] = {
        I40E_PF_STAT("link_xoff_rx", stats.link_xoff_rx),
        I40E_PF_STAT("link_xon_tx", stats.link_xon_tx),
        I40E_PF_STAT("link_xoff_tx", stats.link_xoff_tx),
+       I40E_PF_STAT("priority_xon_rx", stats.priority_xon_rx),
+       I40E_PF_STAT("priority_xoff_rx", stats.priority_xoff_rx),
+       I40E_PF_STAT("priority_xon_tx", stats.priority_xon_tx),
+       I40E_PF_STAT("priority_xoff_tx", stats.priority_xoff_tx),
        I40E_PF_STAT("rx_size_64", stats.rx_size_64),
        I40E_PF_STAT("rx_size_127", stats.rx_size_127),
        I40E_PF_STAT("rx_size_255", stats.rx_size_255),