[ofw] [PATCH 2/11] librdmacm: change ib_addr to rdma_ib_addr
Hefty, Sean
sean.hefty at intel.com
Mon Aug 16 16:15:36 PDT 2010
The Linux version of the librdmacm supports IB ACM and provides hooks
for future patches to support AF_IB. Update Windows with these same hooks.
AF_IB is not supported, nor is IB ACM at this time. This simply makes
adding them in the future easier.
From: Sean Hefty <sean.hefty at intel.com>
---
trunk/ulp/librdmacm/include/rdma/rdma_cma.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/trunk/ulp/librdmacm/include/rdma/rdma_cma.h b/trunk/ulp/librdmacm/include/rdma/rdma_cma.h
index d57490e..4604560 100644
--- a/trunk/ulp/librdmacm/include/rdma/rdma_cma.h
+++ b/trunk/ulp/librdmacm/include/rdma/rdma_cma.h
@@ -74,17 +74,23 @@ enum rdma_cm_event_type
enum rdma_port_space
{
RDMA_PS_IPOIB = 0x0002,
+ RDMA_PS_IB = 0x0003,
RDMA_PS_TCP = 0x0106,
RDMA_PS_UDP = 0x0111,
};
+#define RDMA_IB_IP_PS_MASK 0xFFFFFFFFFFFF0000ULL
+#define RDMA_IB_IP_PORT_MASK 0x000000000000FFFFULL
+#define RDMA_IB_IP_PS_TCP 0x0000000001060000ULL
+#define RDMA_IB_IP_PS_UDP 0x0000000001110000ULL
+
/*
* Global qkey value for UDP QPs and multicast groups created via the
* RDMA CM.
*/
#define RDMA_UDP_QKEY 0x01234567
-struct ib_addr
+struct rdma_ib_addr
{
union ibv_gid sgid;
union ibv_gid dgid;
@@ -101,7 +107,7 @@ struct rdma_addr
sizeof(struct sockaddr)];
union
{
- struct ib_addr ibaddr;
+ struct rdma_ib_addr ibaddr;
} addr;
};
More information about the ofw
mailing list