RDMA/hns: Refactor the QP context filling process related to WQE buffer configure
authorXi Wang <wangxi11@huawei.com>
Wed, 20 May 2020 13:53:18 +0000 (21:53 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 May 2020 17:02:13 +0000 (14:02 -0300)
commit494c3b312255a39d4450f37ec2e675f142a76c8c
tree430e00a2898507eeb11cc6150dac4795addddff7
parent13aa13dddd5f06d47c35f9de46343e740f7d8b90
RDMA/hns: Refactor the QP context filling process related to WQE buffer configure

Split the code related to WQE buffer configure from the QPC filling
process into two functions: config_qp_sq_buf() and config_qp_rq_buf(),
this will make the code more readable.

Link: https://lore.kernel.org/r/1589982799-28728-9-git-send-email-liweihang@huawei.com
Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c