RDMA/hns: Fix cqn type and init resp
authorYixian Liu <liuyixian@huawei.com>
Thu, 15 Mar 2018 07:23:14 +0000 (15:23 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 21:34:26 +0000 (15:34 -0600)
commit7b48221cf41a90cf4bfc36e6d699b7fa4169c970
tree1389bc25e0ed6f4a9e34a1f05f3e0df07d356119
parente41a7c41947d33dbca16d1695460c121342a4601
RDMA/hns: Fix cqn type and init resp

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>
drivers/infiniband/hw/hns/hns_roce_cq.c
drivers/infiniband/hw/hns/hns_roce_qp.c
include/uapi/rdma/hns-abi.h