Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bade732a authored by Tom Tucker's avatar Tom Tucker Committed by J. Bruce Fields
Browse files

svcrdma: RDMA support not yet compatible with RPC6



RPC6 requires that it be possible to create endpoints that listen
exclusively for IPv4 or IPv6 connection requests. This is not currently
supported by the RDMA API.

This fixes a server RDMA regression introduced by 37498292 "NFSD:
Create PF_INET6 listener in write_ports".

Signed-off-by: default avatarTom <Tucker&lt;tom@opengridcomputing.com>
Tested-by: default avatarSteve Wise <swise@opengridcomputing.com>
Reviewed-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 2eaa9cfd
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -678,7 +678,10 @@ static struct svc_xprt *svc_rdma_create(struct svc_serv *serv,
	int ret;
	int ret;


	dprintk("svcrdma: Creating RDMA socket\n");
	dprintk("svcrdma: Creating RDMA socket\n");

	if (sa->sa_family != AF_INET) {
		dprintk("svcrdma: Address family %d is not supported.\n", sa->sa_family);
		return ERR_PTR(-EAFNOSUPPORT);
	}
	cma_xprt = rdma_create_xprt(serv, 1);
	cma_xprt = rdma_create_xprt(serv, 1);
	if (!cma_xprt)
	if (!cma_xprt)
		return ERR_PTR(-ENOMEM);
		return ERR_PTR(-ENOMEM);