]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix CPU socket ID for Rx queue creation
authorThinh Tran <thinhtr@linux.vnet.ibm.com>
Wed, 9 Mar 2022 19:49:00 +0000 (14:49 -0500)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 14 Mar 2022 14:30:01 +0000 (15:30 +0100)
commit9011af71bbd1787870b77a9bf34681f1ab1198b6
treeef61808915e11d8e1e2d53b91d618c72465f597c
parent04c0d3f20f54618c2b62f353b31b5a2fb20d687a
net/mlx5: fix CPU socket ID for Rx queue creation

The default CPU socket ID was used while creating the Rx queue and this caused
creation failure in case if hardware was not resided on the default socket.

The patch sets the correct CPU socket ID for the mlx5_rxq_ctrl before
calling the mlx5_rxq_create_devx_rq_resources() which eventually calls
mlx5_devx_rq_create() with correct CPU socket ID.

Fixes: bc5bee028ebc ("net/mlx5: create drop queue using DevX")
Cc: stable@dpdk.org
Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
Reviewed-by: David Christensen <drc@linux.vnet.ibm.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_devx.c