RDMA/ucma: Support querying for AF_IB addresses
authorSean Hefty <sean.hefty@intel.com>
Wed, 29 May 2013 17:09:25 +0000 (10:09 -0700)
committerRoland Dreier <roland@purestorage.com>
Fri, 21 Jun 2013 06:35:39 +0000 (23:35 -0700)
commitee7aed4528fb3c44a36abd79eb23fd5401a5b697
tree16e084d5abbf42b117b8a4b4cb24dcb6d5bd281e
parent94d0c939416480066d4e4d69e0d3c217bc083cea
RDMA/ucma: Support querying for AF_IB addresses

The sockaddr structure for AF_IB is larger than sockaddr_in6.  The
rdma cm user space ABI uses the latter to exchange address information
between user space and the kernel.

To support querying for larger addresses, define a new query command
that exchanges data using sockaddr_storage, rather than sockaddr_in6.
Unlike the existing query_route command, the new command only returns
address information.  Route (i.e. path record) data is separated.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/ucma.c
include/uapi/rdma/rdma_user_cm.h