]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/erdma: Correct the max_qp and max_cq capacities of the device
authorCheng Xu <chengyou@linux.alibaba.com>
Wed, 10 Aug 2022 01:43:19 +0000 (09:43 +0800)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 16 Aug 2022 13:29:12 +0000 (16:29 +0300)
commit1c1660d06e6d3652208ded90124cc7edb25c8e15
treee791477ff5fa6eb7428ccab32ff57d423038e17b
parent2f023d0f5ca8e2c07cbc1b61e96a63b3f69a8546
RDMA/erdma: Correct the max_qp and max_cq capacities of the device

QP0 in HW is used for CMDQ, and the rest is for RDMA QPs. So the actual
max_qp capacity reported to core should be max_qp (reported by HW) - 1.
So does max_cq.

Fixes: 3d76dbe08df7 ("RDMA/erdma: Add verbs implementation")
Link: https://lore.kernel.org/all/20220810014320.88026-1-chengyou@linux.alibaba.com
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/erdma/erdma_verbs.c