ixgbe: only check pfc bits in hang logic if pfc is enabled
Subsystems (2)
PATCH 1/1 ixgbe: only check pfc bits in hang logic if pfc is enabled
From: John Fastabend <[email protected]>
Only check pfc bits in hang logic if PFC is enabled. Previously, if DCB was enabled but PFC was disabled the incorrect pause bits would be checked.
Signed-off-by John Fastabend <[email protected]>
Acked-by Don Skidmore <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
drivers/net/ixgbe/ixgbe_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ixgbe/ixgbe_main.c +1 -1
@@ -642,7 +642,7 @@ static inline bool ixgbe_tx_xon_state(struct ixgbe_adapter *adapter,u32 txoff =IXGBE_TFCS_TXOFF ;#ifdef CONFIG_IXGBE_DCB -if (adapter->flags &IXGBE_FLAG_DCB_ENABLED ) { +if (adapter->dcb_cfg.pfc_mode_enable) {int tc;int reg_idx = tx_ring->reg_idx;int dcb_i = adapter->ring_feature[RING_F_DCB ].indices;
From: Jeff Kirsher <[email protected]>
Date: Thu, 03 Jun 2010 20:03:45 -0700
Quoted 9 lines
From: John Fastabend <[email protected]>
Only check pfc bits in hang logic if PFC is enabled. Previously, if DCB was enabled but PFC was disabled the incorrect pause bits would be checked.
Signed-off-by John Fastabend <[email protected]>Acked-by Don Skidmore <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied.