summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorDekel Peled <dekelp@mellanox.com>2019-07-22 14:52:18 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-07-23 14:31:36 +0200
commitdc9ceff73c99a1600a3eb2487d076a29de2f8294 (patch)
tree9efea280897c181a5b50e15e79b9882bc06f065c /drivers/net/mlx5/mlx5_trigger.c
parentabc81aafde6cfc42d3337e746a2d2139f95db722 (diff)
downloaddpdk-dc9ceff73c99a1600a3eb2487d076a29de2f8294.zip
dpdk-dc9ceff73c99a1600a3eb2487d076a29de2f8294.tar.gz
dpdk-dc9ceff73c99a1600a3eb2487d076a29de2f8294.tar.xz
net/mlx5: create advanced RxQ via DevX
Function mlx5_rxq_obj_new(), previously called mlx5_rxq_ibv_new(), supports creating Rx queue objects using verbs. This patch expands the relevant functions, to support creating verbs or DevX Rx queue objects: Function mlx5_rxq_obj_new() updated to create RQ object using DevX. Function mlx5_ind_table_obj_new() updated to create RQT object using DevX. Function mlx5_hrxq_new() updated to create TIR object using DevX. New utility functions added to perform specific operations: mlx5_devx_rq_new(), mlx5_devx_wq_attr_fill(), mlx5_devx_create_rq_attr_fill(). Signed-off-by: Dekel Peled <dekelp@mellanox.com> Acked-by: Matan Azrad <matan@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
-rw-r--r--drivers/net/mlx5/mlx5_trigger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index 54353ee..acd2902 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -123,7 +123,8 @@ mlx5_rxq_start(struct rte_eth_dev *dev)
ret = rxq_alloc_elts(rxq_ctrl);
if (ret)
goto error;
- rxq_ctrl->obj = mlx5_rxq_obj_new(dev, i);
+ rxq_ctrl->obj = mlx5_rxq_obj_new(dev, i,
+ MLX5_RXQ_OBJ_TYPE_DEVX_RQ);
if (!rxq_ctrl->obj)
goto error;
rxq_ctrl->wqn = rxq_ctrl->obj->wq->wq_num;