Skip to contentSkip to conversation

net: ethernet: mtk_eth_soc: fix wrong parameters order in __xdp_rxq_info_reg()

PATCH Applied Tariq Toukan 2 participants 2 messages Feb 6, 2023 – Feb 8, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ethernet: mtk_eth_soc: fix wrong parameters order in __xdp_rxq_info_reg()

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")
---
 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +2 -2
index d56eda6397a4..fa2fa170dcb9 100644
@@ -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;
 
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 8 lines · On Mon, 6 Feb 2023 22:47:03 +0200 you wrote:

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")
---
 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
- [net] net: ethernet: mtk_eth_soc: fix wrong parameters order in __xdp_rxq_info_reg()

    https://git.kernel.org/netdev/net/c/c966153d1202

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html