Prepare for RT3883, which has two MACs. mtk_poll_tx_pdma() completes every skb on MAC 0, which is only right on MT7628, as it has a single MAC. Use the MAC id stored in the TX buffer, as the QDMA path does. Signed-off-by: Ho Jie Feng <hjf3…@gmail.com> --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index a52f6a57ee..4099d7c426 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -2541,7 +2541,8 @@ static int mtk_poll_tx_pdma(struct mtk_eth *eth, int budget, if (tx_buf->data != (void *)MTK_DMA_DUMMY_DESC) { if (tx_buf->type == MTK_TYPE_SKB) - mtk_poll_tx_done(eth, state, 0, tx_buf->data); + mtk_poll_tx_done(eth, state, tx_buf->mac_id, + tx_buf->data); budget--; } mtk_tx_unmap(eth, tx_buf, &bq, true);
-- 2.53.0