Skip to contentSkip to conversation

Failing to resolve local ipv6 address.

PATCH In review David J. Wilder 3 participants 4 messages Oct 7, 2009 3 messages not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

Sean-

Here is a patch to allow a local ipv6 address to be resolved by rdma_cm. I reported this in https://bugs.openfabrics.org/show_bug.cgi?id=1759

To reproduce the problem:
rping -s -v -a ::0 &
rping -c -v -a <ipv6 address local to this system> rdma_resolve_addr error -1

Local ipv6 address was obtained with "ip addr show ib0"

drivers/infiniband/core/addr.c +1 -1
diff -Naurp ofa_kernel-1.5.orig/drivers/infiniband/core/addr.c ofa_kernel-1.5/drivers/infiniband/core/addr.c
@@ -393,7 +393,7 @@ static int addr_resolve_local(struct soc
 
 		for_each_netdev(&init_net, dev)
 			if (ipv6_chk_addr(&init_net,
-					  &((struct sockaddr_in6 *) addr)->sin6_addr,
+					  &((struct sockaddr_in6 *) dst_in)->sin6_addr,
 					  dev, 1))
 				break;
 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 1/1 rdma/cm: fix resolving local ipv6 address.

Quoted 8 lines

Here is a patch to allow a local ipv6 address to be resolved by rdma_cm. I reported this in https://bugs.openfabrics.org/show_bug.cgi?id=1759

To reproduce the problem:
rping -s -v -a ::0 &
rping -c -v -a <ipv6 address local to this system> rdma_resolve_addr error -1

Quoted 4 lines

Local ipv6 address was obtained with "ip addr show ib0"

Using 'addr' there is clearly wrong, since it's of type struct rdma_dev_addr. Thanks

drivers/infiniband/core/addr.c static int addr_resolve_local(struct soc · line 396

Quoted 12 lines

diff -Naurp ofa_kernel-1.5.orig/drivers/infiniband/core/addr.c ofa_kernel- 1.5/drivers/infiniband/core/addr.c
--- ofa_kernel-1.5.orig/drivers/infiniband/core/addr.c 2009-09-25
12:19:44.000000000 -0700
+++ ofa_kernel-1.5/drivers/infiniband/core/addr.c 2009-09-25
12:22:23.000000000 -0700

drivers/infiniband/core/addr.c +0 -1
@@ -393,7 +393,7 @@ static int addr_resolve_local(struct soc
 
 		for_each_netdev(&init_net, dev)
 			if (ipv6_chk_addr(&init_net,
-					  &((struct sockaddr_in6 *)

addr)->sin6_addr,

Review static int addr_resolve_local(struct soc · line 396

Quoted 1 line
(quoted diff) +1 -0
+					  &((struct sockaddr_in6 *)

dst_in)->sin6_addr,

drivers/infiniband/core/addr.c static int addr_resolve_local(struct soc · line 399

Quoted 4 lines
drivers/infiniband/core/addr.c +0 -0
 					  dev, 1))
 				break;
 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 26840C730CF948B48A185F3F073FFC04-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

RE: [PATCH] rdma/cm: fix resolving local ipv6 address.

Quoted 1 line

thanks, applied... I didn't get the original patch but oh well.

The original path was under the subject "Failing to resolve local ipv6 address.'

I changed the subject on my reply.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html