OSDN Git Service

RDMA/hns: Fix wrong assignment of SRQ's max_wr
authorWeihang Li <liweihang@huawei.com>
Fri, 8 May 2020 09:45:54 +0000 (17:45 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 May 2020 23:54:58 +0000 (20:54 -0300)
commit6968aeb5aa64a46175f408fa91e49c19e9558428
tree195da79ad247f4b5128d052739da9730f14baa16
parent053c0acf52edf97cae7d53c9f249f7c2eb565ed9
RDMA/hns: Fix wrong assignment of SRQ's max_wr

srq's attribute max_wr should be 1 less than the total count of wqe.

Fixes: ffb1308b88b6 ("RDMA/hns: Move SRQ code to the reasonable place")
Link: https://lore.kernel.org/r/1588931159-56875-5-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c