RDMA/hns: Refactor the codes for setting transport opode
authorLijun Ou <oulijun@huawei.com>
Sat, 22 Sep 2018 08:21:05 +0000 (16:21 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 26 Sep 2018 20:59:13 +0000 (14:59 -0600)
commitb9c1ea40e8bbd2ce8bf975ec9cf42817021cadb6
tree401faa7181376ce38d7432e1bbb3618d11bd2693
parent6c8541118bd53bc90b6c2473e289e5541de80376
RDMA/hns: Refactor the codes for setting transport opode

Currently the transport opcodes which come from users configuration is set
by similar code. This patch simplifies it.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c