]> git.itanic.dy.fi Git - linux-stable/commit
net: fec: fix rare tx timeout
authorRickard x Andersson <rickaran@axis.com>
Tue, 2 Oct 2018 12:49:32 +0000 (14:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:51:46 +0000 (14:51 +0100)
commitc770ce978ac235af0b5596322ee731ffa5ec6605
tree49b048caac8cd5f0424097c6be6529f7ad8a206a
parent5613fc70844ba07361769a5ca21b2a563f837fd2
net: fec: fix rare tx timeout

[ Upstream commit 657ade07df72847f591ccdb36bd9b91ed0edbac3 ]

During certain heavy network loads TX could time out
with TX ring dump.
TX is sometimes never restarted after reaching
"tx_stop_threshold" because function "fec_enet_tx_queue"
only tests the first queue.

In addition the TX timeout callback function failed to
recover because it also operated only on the first queue.

Signed-off-by: Rickard x Andersson <rickaran@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/fec_main.c