[Intel-wired-lan] [next PATCH S13 09/15] i40evf: Fix check_tx_hang

Catherine Sullivan catherine.sullivan at intel.com
Fri Aug 28 21:55:55 UTC 2015


We were missing an else so add it back in.

Signed-off-by: Catherine Sullivan <catherine.sullivan at intel.com>
---
 drivers/net/ethernet/intel/i40evf/i40e_txrx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
index 45260c2..7b20f53 100644
--- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
+++ b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
@@ -191,6 +191,8 @@ static bool i40e_check_tx_hang(struct i40e_ring *tx_ring)
 				       &tx_ring->state);
 	} else if (tx_done_old == tx_done &&
 		   (tx_pending < I40E_MIN_DESC_PENDING) && (tx_pending > 0)) {
+		/* do nothing */
+	} else {
 		/* update completed stats and disarm the hang check */
 		tx_ring->tx_stats.tx_done_old = tx_done;
 		clear_bit(__I40E_HANG_CHECK_ARMED, &tx_ring->state);
-- 
1.9.3



More information about the Intel-wired-lan mailing list