diff options
author | Sean Hefty <sean.hefty@intel.com> | 2013-05-29 13:09:30 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-06-21 02:35:42 -0400 |
commit | 05ad94577ecd5a101889d04aa099b738ec5ee34f (patch) | |
tree | 24394fe2bcee72de80d91fa4c32426d2c9fee91a /include/uapi/rdma | |
parent | edaa7a5578988bcf12f68f14fb002bc0c87e2801 (diff) |
RDMA/ucma: Name changes to indicate only IP addresses supported
Several commands into the RDMA CM from user space are restricted to
supporting addresses which fit into a sockaddr_in6 structure: bind
address, resolve address, and join multicast.
With the addition of AF_IB, we need to support addresses which are
larger than sockaddr_in6. This will be done by adding new commands
that exchange address information using sockaddr_storage. However, to
support existing applications, we maintain the current commands and
structures, but rename them to indicate that they only support IPv4
and v6 addresses.
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 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/uapi/rdma/rdma_user_cm.h b/include/uapi/rdma/rdma_user_cm.h index ea79253ceb13..79f68f7c9fd2 100644 --- a/include/uapi/rdma/rdma_user_cm.h +++ b/include/uapi/rdma/rdma_user_cm.h | |||
@@ -45,8 +45,8 @@ | |||
45 | enum { | 45 | enum { |
46 | RDMA_USER_CM_CMD_CREATE_ID, | 46 | RDMA_USER_CM_CMD_CREATE_ID, |
47 | RDMA_USER_CM_CMD_DESTROY_ID, | 47 | RDMA_USER_CM_CMD_DESTROY_ID, |
48 | RDMA_USER_CM_CMD_BIND_ADDR, | 48 | RDMA_USER_CM_CMD_BIND_IP, |
49 | RDMA_USER_CM_CMD_RESOLVE_ADDR, | 49 | RDMA_USER_CM_CMD_RESOLVE_IP, |
50 | RDMA_USER_CM_CMD_RESOLVE_ROUTE, | 50 | RDMA_USER_CM_CMD_RESOLVE_ROUTE, |
51 | RDMA_USER_CM_CMD_QUERY_ROUTE, | 51 | RDMA_USER_CM_CMD_QUERY_ROUTE, |
52 | RDMA_USER_CM_CMD_CONNECT, | 52 | RDMA_USER_CM_CMD_CONNECT, |
@@ -59,7 +59,7 @@ enum { | |||
59 | RDMA_USER_CM_CMD_GET_OPTION, | 59 | RDMA_USER_CM_CMD_GET_OPTION, |
60 | RDMA_USER_CM_CMD_SET_OPTION, | 60 | RDMA_USER_CM_CMD_SET_OPTION, |
61 | RDMA_USER_CM_CMD_NOTIFY, | 61 | RDMA_USER_CM_CMD_NOTIFY, |
62 | RDMA_USER_CM_CMD_JOIN_MCAST, | 62 | RDMA_USER_CM_CMD_JOIN_IP_MCAST, |
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 |
@@ -96,13 +96,13 @@ struct rdma_ucm_destroy_id_resp { | |||
96 | __u32 events_reported; | 96 | __u32 events_reported; |
97 | }; | 97 | }; |
98 | 98 | ||
99 | struct rdma_ucm_bind_addr { | 99 | struct rdma_ucm_bind_ip { |
100 | __u64 response; | 100 | __u64 response; |
101 | struct sockaddr_in6 addr; | 101 | struct sockaddr_in6 addr; |
102 | __u32 id; | 102 | __u32 id; |
103 | }; | 103 | }; |
104 | 104 | ||
105 | struct rdma_ucm_resolve_addr { | 105 | struct rdma_ucm_resolve_ip { |
106 | struct sockaddr_in6 src_addr; | 106 | struct sockaddr_in6 src_addr; |
107 | struct sockaddr_in6 dst_addr; | 107 | struct sockaddr_in6 dst_addr; |
108 | __u32 id; | 108 | __u32 id; |
@@ -216,7 +216,7 @@ struct rdma_ucm_notify { | |||
216 | __u32 event; | 216 | __u32 event; |
217 | }; | 217 | }; |
218 | 218 | ||
219 | struct rdma_ucm_join_mcast { | 219 | struct rdma_ucm_join_ip_mcast { |
220 | __u64 response; /* rdma_ucm_create_id_resp */ | 220 | __u64 response; /* rdma_ucm_create_id_resp */ |
221 | __u64 uid; | 221 | __u64 uid; |
222 | struct sockaddr_in6 addr; | 222 | struct sockaddr_in6 addr; |