From: John Fastabend Date: Mon, 19 Jul 2010 13:59:03 +0000 (+0000) Subject: ixgbe: dcb, set DPF bit when PFC is enabled X-Git-Tag: v2.6.36-rc1~571^2~165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fca562ad63d12a32a74b40c86dfe61de9a21fd73;p=platform%2Fkernel%2Flinux-stable.git 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 Signed-off-by: Don Skidmore Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/drivers/net/ixgbe/ixgbe_dcb_82599.c b/drivers/net/ixgbe/ixgbe_dcb_82599.c index 4f7a26a..25b02fb 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, */ reg = IXGBE_READ_REG(hw, IXGBE_MFLCN); reg &= ~IXGBE_MFLCN_RFCE; - reg |= IXGBE_MFLCN_RPFCE; + reg |= IXGBE_MFLCN_RPFCE | IXGBE_MFLCN_DPF; IXGBE_WRITE_REG(hw, IXGBE_MFLCN, reg); out: return 0;