aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_device.h
diff options
context:
space:
mode:
authorXi Wang <wangxi11@huawei.com>2021-01-23 17:48:00 +0800
committerJason Gunthorpe <jgg@nvidia.com>2021-01-28 10:51:05 -0400
commit0e0ab04b5bbe84b58097d6dabb3b01b93ce2bf77 (patch)
tree9b4ac526e4c5e11a1ad476750b9357d655e930ef /drivers/infiniband/hw/hns/hns_roce_device.h
parentRDMA/sw/rdmavt/qp: Fix a bunch of kernel-doc misdemeanours (diff)
downloadlinux-dev-0e0ab04b5bbe84b58097d6dabb3b01b93ce2bf77.tar.xz
linux-dev-0e0ab04b5bbe84b58097d6dabb3b01b93ce2bf77.zip
RDMA/hns: Refactor the MTR creation flow
Split the hns_roce_mtr_create() into serval small functions, remove unused member in 'struct hns_roce_buf_attr' and delete unnecessary MTR page count check flow to make the MTR creation related codes clearer. Link: https://lore.kernel.org/r/1611395282-991-2-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>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_device.h')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_device.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h
index c46b330a8c0a..ffed82d472c4 100644
--- a/drivers/infiniband/hw/hns/hns_roce_device.h
+++ b/drivers/infiniband/hw/hns/hns_roce_device.h
@@ -335,7 +335,6 @@ struct hns_roce_buf_attr {
} region[HNS_ROCE_MAX_BT_REGION];
unsigned int region_count; /* valid region count */
unsigned int page_shift; /* buffer page shift */
- bool fixed_page; /* decide page shift is fixed-size or maximum size */
unsigned int user_access; /* umem access flag */
bool mtt_only; /* only alloc buffer-required MTT memory */
};