net: mediatek: fix stop and wakeup of queue
authorJohn Crispin <blogic@openwrt.org>
Thu, 7 Apr 2016 22:54:07 +0000 (00:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2016 02:41:32 +0000 (22:41 -0400)
commit13c822f6d468ca5a16da4d9432b067d54245c5b9
tree0d4bbd391612c1200c13f95a641afa2842f58968
parent13439eec7af24b0800e654ee03c57ab985083ae4
net: mediatek: fix stop and wakeup of queue

The driver supports 2 MACs. Both run on the same DMA ring. If we go
above/below the TX rings threshold value, we always need to wake/stop
the queue of both devices. Not doing to can cause TX stalls and packet
drops on one of the devices.

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