RDMA/hns: Refactor process about opcode in post_send()
authorWeihang Li <liweihang@huawei.com>
Sat, 19 Sep 2020 10:03:15 +0000 (18:03 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 24 Sep 2020 18:56:26 +0000 (15:56 -0300)
commit12542f1de179e5adf0701f63dff3506e5072c209
treed7518a9e050b2f0070bb76ebc1560f1ee2db4013
parent3cb2c996c9dcc18bd0a6d6a9b4b5adb956e234a0
RDMA/hns: Refactor process about opcode in post_send()

According to the IB specifications, the verbs should return an immediate
error when the users set an unsupported opcode. Furthermore, refactor codes
about opcode in process of post_send to make the difference between opcodes
clearer.

Link: https://lore.kernel.org/r/1600509802-44382-2-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