]> git.baikalelectronics.ru Git - kernel.git/commit
net: mediatek: remove superfluous queue wake up call
authorJohn Crispin <john@phrozen.org>
Fri, 10 Jun 2016 11:28:08 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:29:30 +0000 (23:29 -0700)
commit035fc8c9020a5cf5d4ee5090a41f4c5b5128d973
tree234803d45cfa608f97e925eb24984d97b8255071
parenta6adfb2b45a7d59b0fcf7e7473df3f29303c62f4
net: mediatek: remove superfluous queue wake up call

The code checks if the queue should be stopped because we are below the
threshold of free descriptors only to check if it should be started again.
If we do end up in a state where we are at the threshold limit, it makes
more sense to just stop the queue and wait for the next IRQ to trigger the
TX housekeeping again. There is no rush in enqueuing the next packet, it
needs to wait for all the others in the queue to be dispatched first
anyway.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c