aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_ethtool.c
diff options
context:
space:
mode:
authorPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>2009-05-17 08:35:36 -0400
committerDavid S. Miller <davem@davemloft.net>2009-05-18 00:04:14 -0400
commit8756924c1ecc832c1a5603d10f5cd201e299b312 (patch)
tree65a31908d09f51e9ae04a0e77459348dd701a7c0 /drivers/net/ixgbe/ixgbe_ethtool.c
parent264857b8fe8a16fc95f12e898951fc6bd4bdaa7a (diff)
ixgbe: When in DCB mode with PFC enabled, show LFC is disabled
Ethtool should report that link flow control is disabled when in priority flow control mode. Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@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/net/ixgbe/ixgbe_ethtool.c')
-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 6c7324339ec8..35255b8e90b7 100644
--- 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,
254 else 254 else
255 pause->autoneg = 1; 255 pause->autoneg = 1;
256 256
257#ifdef CONFIG_DCB
258 if (hw->fc.current_mode == ixgbe_fc_pfc) {
259 pause->rx_pause = 0;
260 pause->tx_pause = 0;
261 }
262
263#endif
257 if (hw->fc.current_mode == ixgbe_fc_rx_pause) { 264 if (hw->fc.current_mode == ixgbe_fc_rx_pause) {
258 pause->rx_pause = 1; 265 pause->rx_pause = 1;
259 } else if (hw->fc.current_mode == ixgbe_fc_tx_pause) { 266 } else if (hw->fc.current_mode == ixgbe_fc_tx_pause) {