]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitecd0d00bf1a4b697d3be0f47ced25602dd169d09
tree16e084d5abbf42b117b8a4b4cb24dcb6d5bd281e
parenta885cca906fc0bc275a0138e1463d224d8b5bc15
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