]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b57cc894838574f6362a7c2c318694eea7a219c
tree0d4bbd391612c1200c13f95a641afa2842f58968
parentd1cead9c441321f71f6cdab5ae39095d03499f49
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