RDMA/hns: Refactor the code of creating srq
authorLijun Ou <oulijun@huawei.com>
Mon, 8 Jul 2019 13:41:18 +0000 (21:41 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 15:23:10 +0000 (12:23 -0300)
commit2a2f1887e08964cf155bd67fc094eeb5b02c2f5c
tree71c7b80510455a28835a5246c4edb6fdb89749cd
parent4f8f0d5e33ddb0d102cf6e61c8e8f497eb1c3866
RDMA/hns: Refactor the code of creating srq

Move the related codes of creating user srq and kernel srq into two
independent functions as well as remove some unused code and
simplifications.

Link: https://lore.kernel.org/r/1562593285-8037-3-git-send-email-oulijun@huawei.com
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_srq.c