]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ba27bf370d8b94fa4dfcf7ad1bbb4a7769f13bb
tree0fb5fabb3bebcbc707a9b1ab6f4d53f5e7fe2cf3
parent2787d12aaa42cb4b78bad463394a382a6cb6cadc
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