RDMA/hns: Encapsulate some lines for setting sq size in user mode
authorLijun Ou <oulijun@huawei.com>
Thu, 8 Aug 2019 14:53:41 +0000 (22:53 +0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Aug 2019 14:45:07 +0000 (10:45 -0400)
commitcc95b23c250005873e4a117fccc53a8378fb3aed
tree2f09eded1c5932dad292cd83828a7fc26ae1ce9d
parenta3e2d4c7e76653d7e7bb34b6ca1692e3ca462d80
RDMA/hns: Encapsulate some lines for setting sq size in user mode

It needs to check the sq size with integrity when configures
the relatived parameters of sq. Here moves the relatived code
into a special function.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Link: https://lore.kernel.org/r/1565276034-97329-2-git-send-email-oulijun@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_qp.c