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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>

The kernel has now been fixed to supply this constant.

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

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;
-- 
2.16.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux