aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/hns-abi.h
diff options
context:
space:
mode:
authorYixian Liu <liuyixian@huawei.com>2018-03-15 15:23:14 +0800
committerJason Gunthorpe <jgg@mellanox.com>2018-03-15 15:34:26 -0600
commit7b48221cf41a90cf4bfc36e6d699b7fa4169c970 (patch)
tree1389bc25e0ed6f4a9e34a1f05f3e0df07d356119 /include/uapi/rdma/hns-abi.h
parentIB/core: Move rdma_addr_find_l2_eth_by_grh to core_priv.h (diff)
downloadlinux-dev-7b48221cf41a90cf4bfc36e6d699b7fa4169c970.tar.xz
linux-dev-7b48221cf41a90cf4bfc36e6d699b7fa4169c970.zip
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 '')
-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;
};