summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatan Azrad <matan@mellanox.com>2019-07-29 11:53:24 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-07-29 16:54:27 +0200
commit1a241e5579eded2eabb4e3dd49be26bc83a15e5e (patch)
treefd4c0453fb21b7c9a2e83c8255c23c1ca1263763
parentb7d1e5d4d1ab318ade8e3acd1b2bb68ae6e92120 (diff)
downloaddpdk-next-eventdev-1a241e5579eded2eabb4e3dd49be26bc83a15e5e.zip
dpdk-next-eventdev-1a241e5579eded2eabb4e3dd49be26bc83a15e5e.tar.gz
dpdk-next-eventdev-1a241e5579eded2eabb4e3dd49be26bc83a15e5e.tar.xz
net/mlx5: fix DevX Rx queue type
When the Rx queue is not in striding RQ mode it should be configured as cyclic RQ. In this case the type remains 0 which means linked-list type. Set the RQ type to be cyclic when the queue is not in striding RQ mode. Fixes: dc9ceff73c99 ("net/mlx5: create advanced RxQ via DevX") Signed-off-by: Matan Azrad <matan@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5_rxq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c
index c95627e..5e54156 100644
--- a/drivers/net/mlx5/mlx5_rxq.c
+++ b/drivers/net/mlx5/mlx5_rxq.c
@@ -1118,6 +1118,7 @@ mlx5_devx_rq_new(struct rte_eth_dev *dev, uint16_t idx, uint32_t cqn)
MLX5_MIN_SINGLE_STRIDE_LOG_NUM_BYTES;
wqe_size = sizeof(struct mlx5_wqe_mprq);
} else {
+ rq_attr.wq_attr.wq_type = MLX5_WQ_TYPE_CYCLIC;
wqe_size = sizeof(struct mlx5_wqe_data_seg);
}
log_wqe_size = log2above(wqe_size) + rxq_data->sges_n;