diff mbox series

[for-next,1/5] RDMA/hns: Limit minimum ROCE CQ depth to 64

Message ID 1549181587-47539-2-git-send-email-oulijun@huawei.com (mailing list archive)
State Mainlined
Commit 704e0e613a6d584fde1c80ead0329e918b4f8671
Delegated to: Jason Gunthorpe
Headers show
Series hns misc updates | expand

Commit Message

Lijun Ou Feb. 3, 2019, 8:13 a.m. UTC
From: chenglang <chenglang@huawei.com>

This patch modifies the minimum CQ depth specification of hip08
and is consistent with the processing of hip06.

Signed-off-by: chenglang <chenglang@huawei.com>
---
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index 48a5d65..7f34c923 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@ -1384,6 +1384,7 @@  static int hns_roce_v2_profile(struct hns_roce_dev *hr_dev)
 	caps->max_wqes		= HNS_ROCE_V2_MAX_WQE_NUM;
 	caps->num_cqs		= HNS_ROCE_V2_MAX_CQ_NUM;
 	caps->num_srqs		= HNS_ROCE_V2_MAX_SRQ_NUM;
+	caps->min_cqes		= HNS_ROCE_MIN_CQE_NUM;
 	caps->max_cqes		= HNS_ROCE_V2_MAX_CQE_NUM;
 	caps->max_srqwqes	= HNS_ROCE_V2_MAX_SRQWQE_NUM;
 	caps->max_sq_sg		= HNS_ROCE_V2_MAX_SQ_SGE_NUM;