diff options
author | PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com> | 2009-03-25 18:10:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-26 04:13:51 -0400 |
commit | bb3daa4a5960cd9d39bad88679fcf587b456c05d (patch) | |
tree | 31cbdf87fed0af126ff0c3e0647dfa90aab8a7c7 /drivers/net/ixgbe/ixgbe_dcb_82598.c | |
parent | ede5ad0e29b641c3d3a644272a9127bfd98dfcc8 (diff) |
ixgbe: Allow Priority Flow Control settings to survive a device reset
When changing DCB parameters, ixgbe needs to have the MAC reset. The way
the flow control code is setup today, PFC will be disabled on a reset.
This patch adds a new flow control type for PFC, and then has the netlink
layer take care of toggling which type of flow control to enable.
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_dcb_82598.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_dcb_82598.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_dcb_82598.c b/drivers/net/ixgbe/ixgbe_dcb_82598.c index df359554d49..62206273d88 100644 --- a/drivers/net/ixgbe/ixgbe_dcb_82598.c +++ b/drivers/net/ixgbe/ixgbe_dcb_82598.c | |||
@@ -298,7 +298,6 @@ s32 ixgbe_dcb_config_pfc_82598(struct ixgbe_hw *hw, | |||
298 | reg = IXGBE_READ_REG(hw, IXGBE_RMCS); | 298 | reg = IXGBE_READ_REG(hw, IXGBE_RMCS); |
299 | reg &= ~IXGBE_RMCS_TFCE_802_3X; | 299 | reg &= ~IXGBE_RMCS_TFCE_802_3X; |
300 | /* correct the reporting of our flow control status */ | 300 | /* correct the reporting of our flow control status */ |
301 | hw->fc.current_mode = ixgbe_fc_none; | ||
302 | reg |= IXGBE_RMCS_TFCE_PRIORITY; | 301 | reg |= IXGBE_RMCS_TFCE_PRIORITY; |
303 | IXGBE_WRITE_REG(hw, IXGBE_RMCS, reg); | 302 | IXGBE_WRITE_REG(hw, IXGBE_RMCS, reg); |
304 | 303 | ||