]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
RDMA/hns: Force srq_limit to 0 when creating SRQ
authorWenpeng Liang <liangwenpeng@huawei.com>
Sat, 30 Jan 2021 08:58:01 +0000 (16:58 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:09:25 +0000 (15:09 +0100)
commit90c6df9589df2e4ec55481bc807eef771811f5d6
treeb90d79f9da7529aef3a512a8da8285e9585f6676
parent9bbfd8fa791e507b0a030f5ad993a70b37bf104a
RDMA/hns: Force srq_limit to 0 when creating SRQ

[ Upstream commit b5df9b7a2f965b7903850d8f89846ffe0080b84b ]

According to the IB Specification, srq_limit shouldn't be configured
during SRQ creation. If a user set srq_limit at this time, the driver
should forced it to zero, or the result of creating SRQ will conflict with
the result of querying SRQ.

Fixes: c7bcb13442e1 ("RDMA/hns: Add SRQ support for hip08 kernel mode")
Link: https://lore.kernel.org/r/1611997090-48820-4-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/infiniband/hw/hns/hns_roce_srq.c