RDMA/hns: Refactor hns_roce_v2_set_hem for hip08
authorYangyang Li <liyangyang20@huawei.com>
Thu, 8 Aug 2019 14:53:51 +0000 (22:53 +0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Aug 2019 14:45:08 +0000 (10:45 -0400)
commit260c3b3499198b2cfa911ea7fb4f28bb129ef1e8
tree060900ecdfda4890cd95e73b2dd22d7dea7ef0ef
parent4b42d05d0b2ca56bef42976d304f478f567966ec
RDMA/hns: Refactor hns_roce_v2_set_hem for hip08

In order to reduce the complexity of hns_roce_v2_set_hem, extract
the implementation of op as a function.

Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
Link: https://lore.kernel.org/r/1565276034-97329-12-git-send-email-oulijun@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c