RDMA/hns: Refactor the hns_roce_buf allocation flow
authorXi Wang <wangxi11@huawei.com>
Sat, 14 Nov 2020 09:58:36 +0000 (17:58 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 23 Nov 2020 23:36:54 +0000 (19:36 -0400)
commit6f6e2dcbb82b9b2ea304fe32635789fedd4e9868
treebc1890e8499d374040362bce59347b013e49e664
parent93035242d9e22f2aad6ac0b886f19444713c0089
RDMA/hns: Refactor the hns_roce_buf allocation flow

Add a group of flags to control the 'struct hns_roce_buf' allocation
flow, this is used to support the caller running in atomic context.

Link: https://lore.kernel.org/r/1605347916-15964-1-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_alloc.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_mr.c