RDMA/hns: Enable all CMDQ context
authorLang Cheng <chenglang@huawei.com>
Thu, 1 Apr 2021 07:32:19 +0000 (15:32 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 8 Apr 2021 19:05:03 +0000 (16:05 -0300)
commita389d016c03012cc39e6655d4f5b3e06e3161445
treeee01a88e9ee98fba161a05d2e345cea6cffc5e96
parentea492251894073cbb366c9fcd227f62cbaa7ef4b
RDMA/hns: Enable all CMDQ context

Fix error of cmd's context number calculation algorithm to enable all of
32 cmd entries and support 32 concurrent accesses.

Link: https://lore.kernel.org/r/1617262341-37571-2-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_cmd.c
drivers/infiniband/hw/hns/hns_roce_device.h