diff options
author | Sean Hefty <sean.hefty@intel.com> | 2013-05-29 13:09:32 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-06-21 02:35:44 -0400 |
commit | 209cf2a751f9ff2a516102339e54fcac0176fa78 (patch) | |
tree | 0af9e0cde64256311f60986cd55463af44bfcf57 /include/uapi/rdma | |
parent | eebe4c3a62aadb64ba30bde97b96d656e369d934 (diff) |
RDMA/ucma: Allow user space to pass AF_IB into resolve
Allow user space applications to call resolve_addr using AF_IB. To
support sockaddr_ib, we need to define a new structure capable of
handling the larger address size.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/uapi/rdma')
-rw-r--r-- | include/uapi/rdma/rdma_user_cm.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/uapi/rdma/rdma_user_cm.h b/include/uapi/rdma/rdma_user_cm.h index 895a427bfc91..6d03f9c16f1e 100644 --- a/include/uapi/rdma/rdma_user_cm.h +++ b/include/uapi/rdma/rdma_user_cm.h | |||
@@ -63,7 +63,8 @@ enum { | |||
63 | RDMA_USER_CM_CMD_LEAVE_MCAST, | 63 | RDMA_USER_CM_CMD_LEAVE_MCAST, |
64 | RDMA_USER_CM_CMD_MIGRATE_ID, | 64 | RDMA_USER_CM_CMD_MIGRATE_ID, |
65 | RDMA_USER_CM_CMD_QUERY, | 65 | RDMA_USER_CM_CMD_QUERY, |
66 | RDMA_USER_CM_CMD_BIND | 66 | RDMA_USER_CM_CMD_BIND, |
67 | RDMA_USER_CM_CMD_RESOLVE_ADDR | ||
67 | }; | 68 | }; |
68 | 69 | ||
69 | /* | 70 | /* |
@@ -117,6 +118,16 @@ struct rdma_ucm_resolve_ip { | |||
117 | __u32 timeout_ms; | 118 | __u32 timeout_ms; |
118 | }; | 119 | }; |
119 | 120 | ||
121 | struct rdma_ucm_resolve_addr { | ||
122 | __u32 id; | ||
123 | __u32 timeout_ms; | ||
124 | __u16 src_size; | ||
125 | __u16 dst_size; | ||
126 | __u32 reserved; | ||
127 | struct sockaddr_storage src_addr; | ||
128 | struct sockaddr_storage dst_addr; | ||
129 | }; | ||
130 | |||
120 | struct rdma_ucm_resolve_route { | 131 | struct rdma_ucm_resolve_route { |
121 | __u32 id; | 132 | __u32 id; |
122 | __u32 timeout_ms; | 133 | __u32 timeout_ms; |