aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2010-07-19 09:59:03 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-19 23:23:36 -0400
commitfca562ad63d12a32a74b40c86dfe61de9a21fd73 (patch)
tree0b64fabd55aa9f930326e5c226ce2b5f27651d50 /drivers/net/ixgbe
parentb59544649d6bb5134ab56764836efc29241ae5e0 (diff)
ixgbe: dcb, set DPF bit when PFC is enabled
Set the DPF bit when PFC is enabled. This will discard PFC frames so they do not get passed up the stack. The DPF bit is set for flow control, but not priority flow control this brings pfc inline with fc. Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com> Tested-by: Ross Brattain <ross.b.brattain@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')
-rw-r--r--drivers/net/ixgbe/ixgbe_dcb_82599.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_dcb_82599.c b/drivers/net/ixgbe/ixgbe_dcb_82599.c
index 4f7a26ab411e..25b02fb425ac 100644
--- a/drivers/net/ixgbe/ixgbe_dcb_82599.c
+++ b/drivers/net/ixgbe/ixgbe_dcb_82599.c
@@ -346,7 +346,7 @@ s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw,
346 */ 346 */
347 reg = IXGBE_READ_REG(hw, IXGBE_MFLCN); 347 reg = IXGBE_READ_REG(hw, IXGBE_MFLCN);
348 reg &= ~IXGBE_MFLCN_RFCE; 348 reg &= ~IXGBE_MFLCN_RFCE;
349 reg |= IXGBE_MFLCN_RPFCE; 349 reg |= IXGBE_MFLCN_RPFCE | IXGBE_MFLCN_DPF;
350 IXGBE_WRITE_REG(hw, IXGBE_MFLCN, reg); 350 IXGBE_WRITE_REG(hw, IXGBE_MFLCN, reg);
351out: 351out:
352 return 0; 352 return 0;