]> 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)
commit225629a44d5a4863d3678b39183484f8f3936044
tree8541a769b765dd544032a7fa4eb6265adc7d28e1
parent4b4f3756a279be769f0e52f97b7da10d837fda6a
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: 486225205a90 ("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