RDMA/hns: Fix to support 64K page for srq
authorLijun Ou <oulijun@huawei.com>
Thu, 24 Oct 2019 09:21:56 +0000 (17:21 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 28 Oct 2019 16:33:06 +0000 (13:33 -0300)
commit5c7e76fb7cb5071be800c938ebf2c475e140d3f0
tree2e4755648b37afc6b7b8aff22ef78a254e238a81
parent79d81ef42c9a8feee2f1df5dffa6ac628b71141d
RDMA/hns: Fix to support 64K page for srq

SRQ's page size configuration of BA and buffer should depend on current
PAGE_SHIFT, or it can't work in scenario of 64K page.

Fixes: c7bcb13442e1 ("RDMA/hns: Add SRQ support for hip08 kernel mode")
Link: https://lore.kernel.org/r/1571908917-16220-2-git-send-email-liweihang@hisilicon.com
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c