aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2013-05-29 13:09:31 -0400
committerRoland Dreier <roland@purestorage.com>2013-06-21 02:35:43 -0400
commiteebe4c3a62aadb64ba30bde97b96d656e369d934 (patch)
treebee1a741899b80595855bfcbc0e67b4df24c0983 /include/uapi
parent05ad94577ecd5a101889d04aa099b738ec5ee34f (diff)
RDMA/ucma: Allow user space to bind to AF_IB
Support user space binding to addresses using AF_IB. Since sockaddr_ib is larger than sockaddr_in6, we need to define a larger structure when binding using AF_IB. This time we use sockaddr_storage to cover future cases. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/rdma/rdma_user_cm.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/uapi/rdma/rdma_user_cm.h b/include/uapi/rdma/rdma_user_cm.h
index 79f68f7c9fd2..895a427bfc91 100644
--- a/include/uapi/rdma/rdma_user_cm.h
+++ b/include/uapi/rdma/rdma_user_cm.h
@@ -62,7 +62,8 @@ enum {
62 RDMA_USER_CM_CMD_JOIN_IP_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,
66 RDMA_USER_CM_CMD_BIND
66}; 67};
67 68
68/* 69/*
@@ -102,6 +103,13 @@ struct rdma_ucm_bind_ip {
102 __u32 id; 103 __u32 id;
103}; 104};
104 105
106struct rdma_ucm_bind {
107 __u32 id;
108 __u16 addr_size;
109 __u16 reserved;
110 struct sockaddr_storage addr;
111};
112
105struct rdma_ucm_resolve_ip { 113struct rdma_ucm_resolve_ip {
106 struct sockaddr_in6 src_addr; 114 struct sockaddr_in6 src_addr;
107 struct sockaddr_in6 dst_addr; 115 struct sockaddr_in6 dst_addr;