mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
ixgbe: Enable another bit for flow control operation
The discard pause frames bit was not enabled, so flow control frames could be passed up to the host. Enabled DPF to keep the frames off the stack. 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>
This commit is contained in:
parent
fbb5a55830
commit
2132d38133
@ -322,6 +322,7 @@ static s32 ixgbe_fc_enable_82598(struct ixgbe_hw *hw, s32 packetbuf_num)
|
||||
}
|
||||
|
||||
/* Enable 802.3x based flow control settings. */
|
||||
fctrl_reg |= IXGBE_FCTRL_DPF;
|
||||
IXGBE_WRITE_REG(hw, IXGBE_FCTRL, fctrl_reg);
|
||||
IXGBE_WRITE_REG(hw, IXGBE_RMCS, rmcs_reg);
|
||||
|
||||
|
@ -1700,6 +1700,7 @@ s32 ixgbe_fc_enable(struct ixgbe_hw *hw, s32 packetbuf_num)
|
||||
}
|
||||
|
||||
/* Enable 802.3x based flow control settings. */
|
||||
mflcn_reg |= IXGBE_MFLCN_DPF;
|
||||
IXGBE_WRITE_REG(hw, IXGBE_MFLCN, mflcn_reg);
|
||||
IXGBE_WRITE_REG(hw, IXGBE_FCCFG, fccfg_reg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user