]> 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)
commitee1eaeaec319c8f23575415624c7ef2b0fe1d1aa
tree234803d45cfa608f97e925eb24984d97b8255071
parent365962fa008889efdd5ff28e91daafbf50d97c52
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