]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Feb 2022 22:41:02 +0000 (14:41 -0800)
commit24f8bc49ed32c112b647e27f369782d225d6c4d8
tree8541a769b765dd544032a7fa4eb6265adc7d28e1
parent88b259529e8adf04df690fc0459680b828eab12f
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: 9badce1e4152 ("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>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c