RDMA/cma: Fix handling of IPv6 addressing in cma_use_port
authorHefty, Sean <sean.hefty@intel.com>
Tue, 10 May 2011 05:06:10 +0000 (22:06 -0700)
committerRoland Dreier <roland@purestorage.com>
Tue, 10 May 2011 05:06:10 +0000 (22:06 -0700)
commit43b752daae9445a3b2b075a236840d801fce1593
tree0fb5fabb3bebcbc707a9b1ab6f4d53f5e7fe2cf3
parent693d92a1bbc9e42681c42ed190bd42b636ca876f
RDMA/cma: Fix handling of IPv6 addressing in cma_use_port

cma_use_port() assumes that the sockaddr is an IPv4 address.  Since
IPv6 addressing is supported (and also to support other address
families) make the code more generic in its address handling.

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