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)
commit657ade07df72847f591ccdb36bd9b91ed0edbac3
tree89c323c731e207ecd7ebbf251cfbe71201f0f50b
parentad5f97faff4231e72b96bd96adbe1b6e977a9b86
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