diff options
author | Sean Hefty <sean.hefty@intel.com> | 2013-05-29 10:09:31 -0700 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-06-20 23:35:43 -0700 |
commit | eebe4c3a62aadb64ba30bde97b96d656e369d934 (patch) | |
tree | bee1a741899b80595855bfcbc0e67b4df24c0983 /include/uapi/rdma | |
parent | 05ad94577ecd5a101889d04aa099b738ec5ee34f (diff) | |
download | linux-eebe4c3a62aadb64ba30bde97b96d656e369d934.tar.gz linux-eebe4c3a62aadb64ba30bde97b96d656e369d934.tar.bz2 linux-eebe4c3a62aadb64ba30bde97b96d656e369d934.zip |
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/rdma')
-rw-r--r-- | include/uapi/rdma/rdma_user_cm.h | 10 |
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 { RDMA_USER_CM_CMD_JOIN_IP_MCAST, RDMA_USER_CM_CMD_LEAVE_MCAST, RDMA_USER_CM_CMD_MIGRATE_ID, - RDMA_USER_CM_CMD_QUERY + RDMA_USER_CM_CMD_QUERY, + RDMA_USER_CM_CMD_BIND }; /* @@ -102,6 +103,13 @@ struct rdma_ucm_bind_ip { __u32 id; }; +struct rdma_ucm_bind { + __u32 id; + __u16 addr_size; + __u16 reserved; + struct sockaddr_storage addr; +}; + struct rdma_ucm_resolve_ip { struct sockaddr_in6 src_addr; struct sockaddr_in6 dst_addr; |