summaryrefslogtreecommitdiff
path: root/include/uapi/rdma/hns-abi.h
diff options
context:
space:
mode:
authorYixian Liu <liuyixian@huawei.com>2018-03-15 10:23:14 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-03-16 00:34:26 +0300
commit7b48221cf41a90cf4bfc36e6d699b7fa4169c970 (patch)
tree1389bc25e0ed6f4a9e34a1f05f3e0df07d356119 /include/uapi/rdma/hns-abi.h
parente41a7c41947d33dbca16d1695460c121342a4601 (diff)
downloadlinux-7b48221cf41a90cf4bfc36e6d699b7fa4169c970.tar.xz
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>
Diffstat (limited to 'include/uapi/rdma/hns-abi.h')
-rw-r--r--include/uapi/rdma/hns-abi.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/uapi/rdma/hns-abi.h b/include/uapi/rdma/hns-abi.h
index 38e8f192bf72..f7af7e59a5e4 100644
--- a/include/uapi/rdma/hns-abi.h
+++ b/include/uapi/rdma/hns-abi.h
@@ -42,8 +42,7 @@ struct hns_roce_ib_create_cq {
};
struct hns_roce_ib_create_cq_resp {
- __u32 cqn;
- __u32 reserved;
+ __u64 cqn; /* Only 32 bits used, 64 for compat */
__u64 cap_flags;
};