aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDon Skidmore <donald.c.skidmore@intel.com>2008-12-21 23:11:04 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-21 23:11:04 -0500
commitbfb8cc31b11ccaf7cd55fd9e0f4794f82527948f (patch)
tree21d2ce889b36d23f3de618b319d389b6829ade8c /drivers
parentf4314e815e87b4ab1c9b1115dd5853cd20ca999c (diff)
ixgbe: fix the display of DCB control stats in ethtool
Priority flow contol statistics for Data Center Bridging (DCB) weren't included in ethtool. This patch adds them. Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com> Signed-off-by: Eric W Multanen <eric.w.multanen@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ixgbe/ixgbe_ethtool.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c
index ad9759de3cd8..849c1fe28207 100644
--- a/drivers/net/ixgbe/ixgbe_ethtool.c
+++ b/drivers/net/ixgbe/ixgbe_ethtool.c
@@ -881,8 +881,15 @@ static void ixgbe_get_strings(struct net_device *netdev, u32 stringset,
881 if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) { 881 if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) {
882 for (i = 0; i < MAX_TX_PACKET_BUFFERS; i++) { 882 for (i = 0; i < MAX_TX_PACKET_BUFFERS; i++) {
883 sprintf(p, "tx_pb_%u_pxon", i); 883 sprintf(p, "tx_pb_%u_pxon", i);
884 p += ETH_GSTRING_LEN;
885 sprintf(p, "tx_pb_%u_pxoff", i);
886 p += ETH_GSTRING_LEN;
884 } 887 }
885 for (i = 0; i < MAX_RX_PACKET_BUFFERS; i++) { 888 for (i = 0; i < MAX_RX_PACKET_BUFFERS; i++) {
889 sprintf(p, "rx_pb_%u_pxon", i);
890 p += ETH_GSTRING_LEN;
891 sprintf(p, "rx_pb_%u_pxoff", i);
892 p += ETH_GSTRING_LEN;
886 } 893 }
887 } 894 }
888 /* BUG_ON(p - data != IXGBE_STATS_LEN * ETH_GSTRING_LEN); */ 895 /* BUG_ON(p - data != IXGBE_STATS_LEN * ETH_GSTRING_LEN); */