Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8756924c authored by Peter P Waskiewicz Jr's avatar Peter P Waskiewicz Jr Committed by David S. Miller
Browse files

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: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 264857b8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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) {