RDMA/iwcm: Allow AFONLY binding for IPv6 addresses
authorBernard Metzler <bmt@zurich.ibm.com>
Fri, 19 Feb 2021 14:34:41 +0000 (15:34 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 10 Mar 2021 19:30:45 +0000 (15:30 -0400)
commite35ecb466eb63c2311783208547633f90742d06d
tree5fc994e5f5f76802913304b9caef19602292bfae
parent0f00571f94339fa27f592d157ccc0b909dc0625e
RDMA/iwcm: Allow AFONLY binding for IPv6 addresses

Binding IPv6 address/port to AF_INET6 domain only is provided via
rdma_set_afonly(), but was not signalled to the provider.  Applications
like NFS/RDMA bind the same port to both IPv4 and IPv6 addresses
simultaneously and thus rely on it working correctly.

Link: https://lore.kernel.org/r/20210219143441.1068-1-bmt@zurich.ibm.com
Tested-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cma.c
drivers/infiniband/sw/siw/siw_cm.c
include/rdma/iw_cm.h