RDMA/cma: Fix AF_INET6 support in multicast joining
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Thu, 19 Nov 2009 20:55:22 +0000 (12:55 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 19 Nov 2009 20:55:22 +0000 (12:55 -0800)
commite2e626972e652d18520f84d69fc06cfa307d11ff
treedbb6f1cd534795a6ae3b1556cef44cb7b57da0c6
parent1c9b281997b5876c0c8ed62506b56db89d262b57
RDMA/cma: Fix AF_INET6 support in multicast joining

If joining to an AF_INET6 address, we need to map the address to a MGID
in the same way as the IP stack.  The old code would just fall through to
the IPv4 case and generate garbage.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cma.c