Skip to content

Commit bf8e59f

Browse files
Gatis Peiseniekskuba-moo
authored andcommitted
atl1c: fix tx timeout after link flap on Mikrotik 10/25G NIC
If NIC had packets in tx queue at the moment link down event happened, it could result in tx timeout when link got back up. Since device has more than one tx queue we need to reset them accordingly. Fixes: 057f4af ("atl1c: add 4 RX/TX queue support for Mikrotik 10/25G NIC") Signed-off-by: Gatis Peisenieks <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 6c342ce commit bf8e59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/atheros/atl1c/atl1c_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ static void atl1c_clean_tx_ring(struct atl1c_adapter *adapter,
900900
atl1c_clean_buffer(pdev, buffer_info);
901901
}
902902

903-
netdev_reset_queue(adapter->netdev);
903+
netdev_tx_reset_queue(netdev_get_tx_queue(adapter->netdev, queue));
904904

905905
/* Zero out Tx-buffers */
906906
memset(tpd_ring->desc, 0, sizeof(struct atl1c_tpd_desc) *

0 commit comments

Comments
 (0)