net/mlx5e: Fix RQ creation flow for queues which doesn't support XDP
Allow to create an RQ which is not registered as an XDP RQ. For example:
the trap-RQ doesn't register as an XDP RQ.
Fixes: 869c5f9262
("net/mlx5e: Generalize open RQ")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
31450b435f
commit
5b232ea94c
@ -510,8 +510,9 @@ static int mlx5e_alloc_rq(struct mlx5e_params *params,
|
||||
rq->page_pool = NULL;
|
||||
goto err_free_by_rq_type;
|
||||
}
|
||||
err = xdp_rxq_info_reg_mem_model(&rq->xdp_rxq,
|
||||
MEM_TYPE_PAGE_POOL, rq->page_pool);
|
||||
if (xdp_rxq_info_is_reg(&rq->xdp_rxq))
|
||||
err = xdp_rxq_info_reg_mem_model(&rq->xdp_rxq,
|
||||
MEM_TYPE_PAGE_POOL, rq->page_pool);
|
||||
}
|
||||
if (err)
|
||||
goto err_free_by_rq_type;
|
||||
|
Loading…
Reference in New Issue
Block a user