]> git.itanic.dy.fi Git - linux-stable/commit
RDMA/hns: Fix wrong fixed value of qp->rq.wqe_shift
authorWenpeng Liang <liangwenpeng@huawei.com>
Mon, 29 Aug 2022 10:50:19 +0000 (18:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 09:32:04 +0000 (11:32 +0200)
commite198c0857032ceac643f2c58a114cf1ded672b28
tree1c31bb2ec4d97beceeafe0e1752c37bfca80019c
parentb2e82e325a847c9d37aea33db5aac19215cce589
RDMA/hns: Fix wrong fixed value of qp->rq.wqe_shift

[ Upstream commit 0c8b5d6268d92d141bfd64d21c870d295a84dee1 ]

The value of qp->rq.wqe_shift of HIP08 is always determined by the number
of sge. So delete the wrong branch.

Fixes: cfc85f3e4b7f ("RDMA/hns: Add profile support for hip08 driver")
Fixes: 926a01dc000d ("RDMA/hns: Add QP operations support for hip08 SoC")
Link: https://lore.kernel.org/r/20220829105021.1427804-3-liangwenpeng@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_qp.c