RDMA/ucma: Allow user space to specify AF_IB when joining multicast
authorSean Hefty <sean.hefty@intel.com>
Wed, 29 May 2013 17:09:33 +0000 (10:09 -0700)
committerRoland Dreier <roland@purestorage.com>
Fri, 21 Jun 2013 06:35:45 +0000 (23:35 -0700)
commit5bc2b7b397b02026a0596a7807443a18422733fa
tree23da8bd5f5932882a8f5524e862134c85fb3116e
parent209cf2a751f9ff2a516102339e54fcac0176fa78
RDMA/ucma: Allow user space to specify AF_IB when joining multicast

Allow user space applications to join multicast groups using MGIDs
directly.  MGIDs may be passed using AF_IB addresses.  Since the
current multicast join command only supports addresses as large as
sockaddr_in6, define a new structure for joining addresses specified
using sockaddr_ib.

Since AF_IB allows the user to specify the qkey when resolving a
remote UD QP address, when joining the multicast group use the qkey
value, if one has been assigned.

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