]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
RDMA/hns: Fix cqn type and init resp
authorYixian Liu <liuyixian@huawei.com>
Thu, 15 Mar 2018 07:23:14 +0000 (15:23 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 10 Apr 2018 17:42:29 +0000 (12:42 -0500)
commit91ed968212c6c41f53662715785ca160d9fb865d
tree83eab21e5366f7d13aabe35bd02d5bef40b66e88
parent246685c5a4147137b547d595a18f67a6bb1a219f
RDMA/hns: Fix cqn type and init resp

BugLink: https://bugs.launchpad.net/bugs/1762755
This patch changes the type of cqn from u32 to u64 to keep
userspace and kernel consistent, initializes resp both for
cq and qp to zeros, and also changes the condition judgment
of outlen considering future caps extension.

Suggested-by: Jason Gunthorpe <jgg@mellanox.com>
Fixes: e088a685eae9 (hns: Support rq record doorbell for the user space)
Fixes: 9b44703d0a21 (hns: Support cq record doorbell for the user space)
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
(cherry picked from commit 7b48221cf41a90cf4bfc36e6d699b7fa4169c970)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/infiniband/hw/hns/hns_roce_cq.c
drivers/infiniband/hw/hns/hns_roce_qp.c
include/uapi/rdma/hns-abi.h