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

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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -510,6 +510,7 @@ static int mlx5e_alloc_rq(struct mlx5e_params *params,
			rq->page_pool = NULL;
			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,
							 MEM_TYPE_PAGE_POOL, rq->page_pool);
	}