atl1c: fix tx timeout after link flap on Mikrotik 10/25G NIC
authorGatis Peisenieks <gatis@mikrotik.com>
Fri, 11 Feb 2022 06:51:23 +0000 (08:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:12 +0000 (12:03 +0100)
commit868366d627e4c886878f76eaeadeee20f2f80dbe
treec491ca97650f035575113193c59dba7cea433037
parent0e6727589aeafbc28e8d1a0de2711da115379722
atl1c: fix tx timeout after link flap on Mikrotik 10/25G NIC

commit bf8e59fd315f304eb538546e35de6dc603e4709f upstream.

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: 057f4af2b171 ("atl1c: add 4 RX/TX queue support for Mikrotik 10/25G NIC")
Signed-off-by: Gatis Peisenieks <gatis@mikrotik.com>
Link: https://lore.kernel.org/r/20220211065123.4187615-1-gatis@mikrotik.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c