diff options
Diffstat (limited to 'drivers/infiniband/hw/mlx4/srq.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/srq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/srq.c b/drivers/infiniband/hw/mlx4/srq.c index 818b7ecace5e..4f7f7600d27c 100644 --- a/drivers/infiniband/hw/mlx4/srq.c +++ b/drivers/infiniband/hw/mlx4/srq.c | |||
@@ -81,6 +81,9 @@ struct ib_srq *mlx4_ib_create_srq(struct ib_pd *pd, | |||
81 | int err; | 81 | int err; |
82 | int i; | 82 | int i; |
83 | 83 | ||
84 | if (init_attr->srq_type != IB_SRQT_BASIC) | ||
85 | return ERR_PTR(-ENOSYS); | ||
86 | |||
84 | /* Sanity check SRQ size before proceeding */ | 87 | /* Sanity check SRQ size before proceeding */ |
85 | if (init_attr->attr.max_wr >= dev->dev->caps.max_srq_wqes || | 88 | if (init_attr->attr.max_wr >= dev->dev->caps.max_srq_wqes || |
86 | init_attr->attr.max_sge > dev->dev->caps.max_srq_sge) | 89 | init_attr->attr.max_sge > dev->dev->caps.max_srq_sge) |