]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
RDMA/hns: Assign the correct value for tx_cqn
authoroulijun <oulijun@huawei.com>
Wed, 10 Jan 2018 06:39:47 +0000 (14:39 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:46:48 +0000 (10:46 -0500)
commit9f5632507c32f1052a67f82a1066bebfdf14d050
tree30d32b6b316b3792af342e5de77cd5d0e0c276c6
parent36119136a9fd0ed32d54a888d8f937c2624437ba
RDMA/hns: Assign the correct value for tx_cqn

BugLink: http://bugs.launchpad.net/bugs/1756097
When modifying qp from init to init, it need to assign the cqn of send cq
for tx cqn field of qp context. Otherwise, it will cause a mistake when
the send and recv cq sizes are different.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
(cherry picked from commit 6d13b869ea1e929842e9d758867e4b7473759f9d)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c