mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
net: ethernet: mtk_eth_soc: fix wrong parameters order in __xdp_rxq_info_reg()
[ Upstream commitc966153d12] Parameters 'queue_index' and 'napi_id' are passed in a swapped order. Fix it here. Fixes:23233e577e("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5f9c656ab2
commit
44a265af4a
@@ -1495,8 +1495,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, ð->dummy_dev, eth->rx_napi.napi_id,
|
||||
id, PAGE_SIZE);
|
||||
err = __xdp_rxq_info_reg(xdp_q, ð->dummy_dev, id,
|
||||
eth->rx_napi.napi_id, PAGE_SIZE);
|
||||
if (err < 0)
|
||||
goto err_free_pp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user