RDMA/hns: Refactor hns_roce_v2_set_hem()
authorWeihang Li <liweihang@huawei.com>
Tue, 28 Jul 2020 10:42:16 +0000 (18:42 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 30 Jul 2020 14:31:02 +0000 (11:31 -0300)
commitcdc1f3e9465640ceb2cae106732ede0812e15f3a
tree21cdef8886b0f5113e7c544df7aa9d1a2a9d1c19
parent57005c96b7cb21f66c4e31446547694eb7f3d894
RDMA/hns: Refactor hns_roce_v2_set_hem()

The parts about preparing and sending mailbox to hardware is not strongly
related to other codes in hns_roce_v2_set_hem(), and can be encapsulated
into a separate function.

Link: https://lore.kernel.org/r/1595932941-40613-3-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c