RDMA/hns: Simplify process of filling UD SQ WQE
authorWeihang Li <liweihang@huawei.com>
Mon, 16 Nov 2020 11:33:26 +0000 (19:33 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Nov 2020 19:24:48 +0000 (15:24 -0400)
commit534c9bdb025b68b6c575fbc15976b4470e032691
treefd5906c094275b9da74ce28ed24ba0ad1447a125
parent148f904c6f94cbd9067008142268524a95320dde
RDMA/hns: Simplify process of filling UD SQ WQE

There are some codes can be simplified or encapsulated in set_ud_wqe() to
make them easier to be understand.

Link: https://lore.kernel.org/r/1605526408-6936-6-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
drivers/infiniband/hw/hns/hns_roce_hw_v2.h