diff mbox

[rdma-core,2/8] verbs: Use kabi for IB_UVERBS_CQ_FLAGS_TIMESTAMP_COMPLETION

Message ID 20180313220737.4336-3-jgg@ziepe.ca (mailing list archive)
State Not Applicable
Delegated to: shefty
Headers show

Commit Message

Jason Gunthorpe March 13, 2018, 10:07 p.m. UTC
From: Jason Gunthorpe <jgg@mellanox.com>

The kernel has now been fixed to supply this constant.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
---
 libibverbs/cmd_cq.c   | 2 +-
 libibverbs/kern-abi.h | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)
diff mbox

Patch

diff --git a/libibverbs/cmd_cq.c b/libibverbs/cmd_cq.c
index 5c98f904441fa0..a42c47fab23b61 100644
--- a/libibverbs/cmd_cq.c
+++ b/libibverbs/cmd_cq.c
@@ -141,7 +141,7 @@  int ibv_cmd_create_cq_ex(struct ibv_context *context,
 		return EOPNOTSUPP;
 
 	if (cq_attr->wc_flags & IBV_WC_EX_WITH_COMPLETION_TIMESTAMP)
-		flags |= IBV_CREATE_CQ_EX_KERNEL_FLAG_COMPLETION_TIMESTAMP;
+		flags |= IB_UVERBS_CQ_FLAGS_TIMESTAMP_COMPLETION;
 
 	return ibv_icmd_create_cq(context, cq_attr->cqe, cq_attr->channel,
 				  cq_attr->comp_vector, flags,
diff --git a/libibverbs/kern-abi.h b/libibverbs/kern-abi.h
index cc1ef7dbb991fc..ca5630e2d4f3c5 100644
--- a/libibverbs/kern-abi.h
+++ b/libibverbs/kern-abi.h
@@ -173,10 +173,6 @@  struct ibv_create_cq {
 	struct ib_uverbs_create_cq core_payload;
 };
 
-enum ibv_create_cq_ex_kernel_flags {
-	IBV_CREATE_CQ_EX_KERNEL_FLAG_COMPLETION_TIMESTAMP = 1 << 0,
-};
-
 struct ibv_create_cq_ex {
 	struct ex_hdr	hdr;
 	struct ib_uverbs_ex_create_cq core_payload;