• John Crispin's avatar
    net: mediatek: fix TX locking · 34c2e4c9
    John Crispin authored
    Inside the TX path there is a lock inside the tx_map function. This is
    however too late. The patch moves the lock to the start of the xmit
    function right before the free count check of the DMA ring happens.
    If we do not do this, the code becomes racy leading to TX stalls and
    dropped packets. This happens as there are 2 netdevs running on the
    same physical DMA ring.
    Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    34c2e4c9
mtk_eth_soc.c 43.1 KB