Commit c48d386b authored by Leon Romanovsky's avatar Leon Romanovsky

RDMA/mlx5: Remove SRQ signature global flag

SRQ signature is not supported, hence no need for special static
global variable to announce it.
Reviewed-by: default avatarMark Bloch <markb@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
parent f02d0d6e
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
#include "mlx5_ib.h" #include "mlx5_ib.h"
#include "srq.h" #include "srq.h"
/* not supported currently */
static int srq_signature;
static void *get_wqe(struct mlx5_ib_srq *srq, int n) static void *get_wqe(struct mlx5_ib_srq *srq, int n)
{ {
return mlx5_buf_offset(&srq->buf, n << srq->msrq.wqe_shift); return mlx5_buf_offset(&srq->buf, n << srq->msrq.wqe_shift);
...@@ -175,7 +172,7 @@ static int create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq, ...@@ -175,7 +172,7 @@ static int create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq,
err = -ENOMEM; err = -ENOMEM;
goto err_in; goto err_in;
} }
srq->wq_sig = !!srq_signature; srq->wq_sig = 0;
in->log_page_size = srq->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT; in->log_page_size = srq->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT;
if (MLX5_CAP_GEN(dev->mdev, cqe_version) == MLX5_CQE_VERSION_V1 && if (MLX5_CAP_GEN(dev->mdev, cqe_version) == MLX5_CQE_VERSION_V1 &&
......
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