[ofa-general] [RMDA CM IPv6 support. PATCHv5 2/2] RDMA CM support

Sean Hefty sean.hefty at intel.com
Mon Dec 1 11:52:57 PST 2008


>@@ -2073,7 +2073,7 @@ int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr
>*addr)
> 	struct rdma_id_private *id_priv;
> 	int ret;
>
>-	if (addr->sa_family != AF_INET)
>+	if (addr->sa_family != AF_INET && addr->sa_family != AF_INET6)
> 		return -EAFNOSUPPORT;
>
> 	id_priv = container_of(id, struct rdma_id_private, id);

I missed this before, but I think we also need to change cma_loopback_addr()
(called from rdma_bind_addr() through cma_any_addr()) to handle IPv6.

- Sean




More information about the general mailing list