net: ethernet: mediatek: fix inconsistency of port number carried in TXD
authorSean Wang <sean.wang@mediatek.com>
Fri, 14 Apr 2017 03:19:12 +0000 (11:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 17:33:58 +0000 (13:33 -0400)
commit134d21525f5f7c89f1f6ce052a11ac09dc27b331
tree4b859e72c4f6624f709e40bf5227287c8dae0254
parent81d2dd09ca11a2b834c8a915c6aabf8325d57ecf
net: ethernet: mediatek: fix inconsistency of port number carried in TXD

Fix port inconsistency on TXD due to hardware BUG that would cause
different port number is carried on the same TXD between tx_map()
and tx_unmap() with the iperf test. It would cause confusing BQL
logic which leads to kernel panic when dual GMAC runs concurrently.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h