Commit 5b232ea9 authored by Aya Levin's avatar Aya Levin Committed by Saeed Mahameed

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: 869c5f92 ("net/mlx5e: Generalize open RQ")
Signed-off-by: default avatarAya Levin <ayal@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 31450b43
...@@ -510,6 +510,7 @@ static int mlx5e_alloc_rq(struct mlx5e_params *params, ...@@ -510,6 +510,7 @@ static int mlx5e_alloc_rq(struct mlx5e_params *params,
rq->page_pool = NULL; rq->page_pool = NULL;
goto err_free_by_rq_type; goto err_free_by_rq_type;
} }
if (xdp_rxq_info_is_reg(&rq->xdp_rxq))
err = xdp_rxq_info_reg_mem_model(&rq->xdp_rxq, err = xdp_rxq_info_reg_mem_model(&rq->xdp_rxq,
MEM_TYPE_PAGE_POOL, rq->page_pool); MEM_TYPE_PAGE_POOL, rq->page_pool);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment