diff mbox

[7/8] rdmacm: Update addrinfo with XRC support

Message ID 1404281479-6755-8-git-send-email-sean.hefty@intel.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Hefty, Sean July 2, 2014, 6:11 a.m. UTC
From: Sean Hefty <sean.hefty@intel.com>

Remove internal defines, and use libibverbs exported values
instead.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
---
 src/addrinfo.c |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)
diff mbox

Patch

diff --git a/src/addrinfo.c b/src/addrinfo.c
index 68eaddd..cdeb663 100644
--- a/src/addrinfo.c
+++ b/src/addrinfo.c
@@ -1,5 +1,5 @@ 
 /*
- * Copyright (c) 2010 Intel Corporation.  All rights reserved.
+ * Copyright (c) 2010-2014 Intel Corporation.  All rights reserved.
  *
  * This software is available to you under a choice of one of two
  * licenses.  You may choose to be licensed under the terms of the GNU
@@ -45,14 +45,6 @@ 
 #include <rdma/rdma_cma.h>
 #include <infiniband/ib.h>
 
-#ifdef IBV_XRC_OPS
-#define RDMA_QPT_XRC_SEND IBV_QPT_XRC_SEND
-#define RDMA_QPT_XRC_RECV IBV_QPT_XRC_RECV
-#else
-#define RDMA_QPT_XRC_SEND 9
-#define RDMA_QPT_XRC_RECV 10
-#endif
-
 struct rdma_addrinfo nohints;
 
 static void ucma_convert_to_ai(struct addrinfo *ai, struct rdma_addrinfo *rai)
@@ -68,8 +60,8 @@  static void ucma_convert_to_ai(struct addrinfo *ai, struct rdma_addrinfo *rai)
 	switch (rai->ai_qp_type) {
 	case IBV_QPT_RC:
 	case IBV_QPT_UC:
-	case RDMA_QPT_XRC_SEND:
-	case RDMA_QPT_XRC_RECV:
+	case IBV_QPT_XRC_SEND:
+	case IBV_QPT_XRC_RECV:
 		ai->ai_socktype = SOCK_STREAM;
 		break;
 	case IBV_QPT_UD: