Needed to support future AF_IB definition
enum rdma_port_space\r
{\r
RDMA_PS_IPOIB = 0x0002,\r
+ RDMA_PS_IB = 0x0003,
RDMA_PS_TCP = 0x0106,\r
RDMA_PS_UDP = 0x0111,\r
};\r
\r
+#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
+\r
/*\r
* Global qkey value for UDP QPs and multicast groups created via the \r
* RDMA CM.\r
*/\r
#define RDMA_UDP_QKEY 0x01234567\r
\r
-struct ib_addr\r
+struct rdma_ib_addr\r
{\r
union ibv_gid sgid;\r
union ibv_gid dgid;\r
sizeof(struct sockaddr)];\r
union\r
{\r
- struct ib_addr ibaddr;\r
+ struct rdma_ib_addr ibaddr;\r
} addr;\r
};\r
\r