]> git.itanic.dy.fi Git - linux-stable/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)
commitbf8e59fd315f304eb538546e35de6dc603e4709f
tree8541a769b765dd544032a7fa4eb6265adc7d28e1
parent6c342ce2239c182c2428ce5a44cb32330434ae6e
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: 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>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c