net: ethernet: mtk_eth_soc: fix wrong parameters order in __xdp_rxq_info_reg()
authorTariq Toukan <tariqt@nvidia.com>
Mon, 6 Feb 2023 20:47:03 +0000 (22:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2023 09:04:33 +0000 (09:04 +0000)
Parameters 'queue_index' and 'napi_id' are passed in a swapped order.
Fix it here.

Fixes: 23233e577ef9 ("net: ethernet: mtk_eth_soc: rely on page_pool for single page buffers")
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c

index d73e69e..8f61e3b 100644 (file)
@@ -1570,8 +1570,8 @@ static struct page_pool *mtk_create_page_pool(struct mtk_eth *eth,
        if (IS_ERR(pp))
                return pp;
 
-       err = __xdp_rxq_info_reg(xdp_q, &eth->dummy_dev, eth->rx_napi.napi_id,
-                                id, PAGE_SIZE);
+       err = __xdp_rxq_info_reg(xdp_q, &eth->dummy_dev, id,
+                                eth->rx_napi.napi_id, PAGE_SIZE);
        if (err < 0)
                goto err_free_pp;