RDMA/hns: Use the core code to manage the fixed mmap entries
authorChengchang Tang <tangchengchang@huawei.com>
Thu, 28 Oct 2021 10:56:40 +0000 (18:56 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 29 Oct 2021 17:07:31 +0000 (14:07 -0300)
commit6d202d9f70a33560ab62b81da2b062c936437e54
tree80a83b856239960ac9dcbc09cb1cfb55d28bd64f
parent4892298c3a33d965cd0d34ffd66b79b45abdf9b7
RDMA/hns: Use the core code to manage the fixed mmap entries

Add a new implementation for mmap by using the new mmap entry API. This
makes way for further use of the dynamic mmap allocator in this driver.

Link: https://lore.kernel.org/r/20211028105640.1056-1-liangwenpeng@huawei.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_main.c
include/rdma/ib_verbs.h