RDMA/hns: Package operations of rq inline buffer into separate functions
authorLijun Ou <oulijun@huawei.com>
Thu, 29 Aug 2019 08:41:42 +0000 (16:41 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 16 Sep 2019 13:52:20 +0000 (10:52 -0300)
commit395b59a116a24916019cfc5e34b3f44743c01b2d
tree2acb5a4f0d6a42de83e0cd3d6d8145bbf0130b04
parent3d50503b3b33d87bc929eee6b65d206a36bc4579
RDMA/hns: Package operations of rq inline buffer into separate functions

Here packages the codes of allocating and freeing rq inline buffer in
hns_roce_create_qp_common function in order to reduce the complexity.

Link: https://lore.kernel.org/r/1567068102-56919-3-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: Doug Ledford <dledford@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_qp.c