Skip to content

Commit 7674b7b

Browse files
RajuRangojukuba-moo
authored andcommitted
net: amd-xgbe: ensure to reset the tx_timer_active flag
Ensure to reset the tx_timer_active flag in xgbe_stop(), otherwise a port restart may result in tx timeout due to uncleared flag. Fixes: c635eaa ("amd-xgbe: Remove Tx coalescing") Co-developed-by: Sudheesh Mavila <[email protected]> Signed-off-by: Sudheesh Mavila <[email protected]> Signed-off-by: Raju Rangoju <[email protected]> Acked-by: Tom Lendacky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 33d12dc commit 7674b7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/amd/xgbe/xgbe-drv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,9 @@ static void xgbe_stop_timers(struct xgbe_prv_data *pdata)
721721
if (!channel->tx_ring)
722722
break;
723723

724+
/* Deactivate the Tx timer */
724725
del_timer_sync(&channel->tx_timer);
726+
channel->tx_timer_active = 0;
725727
}
726728
}
727729

0 commit comments

Comments
 (0)