diff options
| author | Weihang Li <liweihang@huawei.com> | 2020-09-19 18:03:22 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-30 10:38:20 +0100 |
| commit | 657441f1728e3870aee57d46cd26b78e55af6d2c (patch) | |
| tree | ffa2fe08e6ef865d0a65a984a53bd29bda09e82e /drivers/infiniband/hw | |
| parent | b0b57d37f26231e7980c11f2a61f81fe46750188 (diff) | |
| download | linux-657441f1728e3870aee57d46cd26b78e55af6d2c.tar.gz linux-657441f1728e3870aee57d46cd26b78e55af6d2c.tar.bz2 linux-657441f1728e3870aee57d46cd26b78e55af6d2c.zip | |
RDMA/hns: Fix missing sq_sig_type when querying QP
[ Upstream commit 05df49279f8926178ecb3ce88e61b63104cd6293 ]
The sq_sig_type field should be filled when querying QP, or the users may
get a wrong value.
Fixes: 926a01dc000d ("RDMA/hns: Add QP operations support for hip08 SoC")
Link: https://lore.kernel.org/r/1600509802-44382-9-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw')
| -rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 417de7ac0d5e..2a203e08d4c1 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -3821,6 +3821,7 @@ done: } qp_init_attr->cap = qp_attr->cap; + qp_init_attr->sq_sig_type = hr_qp->sq_signal_bits; out: mutex_unlock(&hr_qp->mutex); |
