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:
f4314e8
)
ixgbe: fix the display of DCB control stats in ethtool
author
Don Skidmore
<
[email protected]
>
Mon, 22 Dec 2008 04:11:04 +0000
(20:11 -0800)
committer
David S. Miller
<
[email protected]
>
Mon, 22 Dec 2008 04:11:04 +0000
(20:11 -0800)
Priority flow contol statistics for Data Center Bridging (DCB) weren't
included in ethtool. This patch adds them.
Signed-off-by: Don Skidmore <
[email protected]
>
Signed-off-by: Eric W Multanen <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ixgbe/ixgbe_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/ixgbe/ixgbe_ethtool.c
b/drivers/net/ixgbe/ixgbe_ethtool.c
index ad9759de3cd868e1637e1ba33019b7eaed89a49c..849c1fe28207ad28030c8f83650a91fa590ba748 100644
(file)
--- 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,
if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) {
for (i = 0; i < MAX_TX_PACKET_BUFFERS; i++) {
sprintf(p, "tx_pb_%u_pxon", i);
+ p += ETH_GSTRING_LEN;
+ sprintf(p, "tx_pb_%u_pxoff", i);
+ p += ETH_GSTRING_LEN;
}
for (i = 0; i < MAX_RX_PACKET_BUFFERS; i++) {
+ sprintf(p, "rx_pb_%u_pxon", i);
+ p += ETH_GSTRING_LEN;
+ sprintf(p, "rx_pb_%u_pxoff", i);
+ p += ETH_GSTRING_LEN;
}
}
/* BUG_ON(p - data != IXGBE_STATS_LEN * ETH_GSTRING_LEN); */