]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: fix rare tx timeout
authorRickard x Andersson <rickaran@axis.com>
Tue, 2 Oct 2018 12:49:32 +0000 (14:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Oct 2018 18:27:10 +0000 (11:27 -0700)
commit927b43b0c0d10198d6c9d733ff42e55f13d45fe6
tree89c323c731e207ecd7ebbf251cfbe71201f0f50b
parent4b560df3aa7ff1128add058ab9d776b16f4354c6
net: fec: fix rare tx timeout

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>
drivers/net/ethernet/freescale/fec_main.c