RDMA/hns: Add a group interfaces for optimizing buffers getting flow
authorLijun Ou <oulijun@huawei.com>
Sat, 8 Jun 2019 06:46:09 +0000 (14:46 +0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Jun 2019 16:56:34 +0000 (12:56 -0400)
commit2ac0bc5e725e84d56b7fc8b280b2dbc9f2f10737
treecee8a73f0166971e006891b8c6421eac0d8183eb
parent38389eaa4db192648916464b60f6086d6bbaa6de
RDMA/hns: Add a group interfaces for optimizing buffers getting flow

Currently, the code for getting umem and kmem buffers exist many files,
this patch adds a group interfaces to simplify the buffers getting flow.

Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_alloc.c
drivers/infiniband/hw/hns/hns_roce_device.h