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:
264857b
)
ixgbe: When in DCB mode with PFC enabled, show LFC is disabled
author
Peter P Waskiewicz Jr
<
[email protected]
>
Sun, 17 May 2009 12:35:36 +0000
(12:35 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 18 May 2009 04:04:14 +0000
(21:04 -0700)
Ethtool should report that link flow control is disabled when in priority
flow control mode.
Signed-off-by: Peter P Waskiewicz Jr <
[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 6c7324339ec8bad68d4cddd23d16c376d870202a..35255b8e90b78d0a4e07f96e74bcf37ea490e785 100644
(file)
--- a/
drivers/net/ixgbe/ixgbe_ethtool.c
+++ b/
drivers/net/ixgbe/ixgbe_ethtool.c
@@
-254,6
+254,13
@@
static void ixgbe_get_pauseparam(struct net_device *netdev,
else
pause->autoneg = 1;
+#ifdef CONFIG_DCB
+ if (hw->fc.current_mode == ixgbe_fc_pfc) {
+ pause->rx_pause = 0;
+ pause->tx_pause = 0;
+ }
+
+#endif
if (hw->fc.current_mode == ixgbe_fc_rx_pause) {
pause->rx_pause = 1;
} else if (hw->fc.current_mode == ixgbe_fc_tx_pause) {