* Failing to resolve local ipv6 address.
@ 2009-10-07 22:49 David J. Wilder
[not found] ` <1254955759.23471.7.camel-XfwDJb4SXxnMbYB6QlFGEg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: David J. Wilder @ 2009-10-07 22:49 UTC (permalink / raw)
To: sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
linux-rdma-u79uwXL29TY76Z2rM5mHXA, pradeep-r/Jw6+rmf7HQT0dZR+AlfA
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"
Signed-off-by: David Wilder <dwilder-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
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
@@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <1254955759.23471.7.camel-XfwDJb4SXxnMbYB6QlFGEg@public.gmane.org>]
* [PATCH] rdma/cm: fix resolving local ipv6 address. [not found] ` <1254955759.23471.7.camel-XfwDJb4SXxnMbYB6QlFGEg@public.gmane.org> @ 2009-10-07 22:55 ` Sean Hefty [not found] ` <26840C730CF948B48A185F3F073FFC04-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Sean Hefty @ 2009-10-07 22:55 UTC (permalink / raw) To: 'David J. Wilder', linux-rdma-u79uwXL29TY76Z2rM5mHXA, pradeep-r/Jw6+rmf7HQT0dZR+AlfA, Roland Dreier >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" > > >Signed-off-by: David Wilder <dwilder-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> Acked-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Using 'addr' there is clearly wrong, since it's of type struct rdma_dev_addr. Thanks > >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 >@@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <26840C730CF948B48A185F3F073FFC04-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH] rdma/cm: fix resolving local ipv6 address. [not found] ` <26840C730CF948B48A185F3F073FFC04-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org> @ 2009-10-07 23:04 ` Roland Dreier [not found] ` <ada3a5uolfy.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Roland Dreier @ 2009-10-07 23:04 UTC (permalink / raw) To: Sean Hefty Cc: 'David J. Wilder', linux-rdma-u79uwXL29TY76Z2rM5mHXA, pradeep-r/Jw6+rmf7HQT0dZR+AlfA thanks, applied... I didn't get the original patch but oh well. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <ada3a5uolfy.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>]
* RE: [PATCH] rdma/cm: fix resolving local ipv6 address. [not found] ` <ada3a5uolfy.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> @ 2009-10-07 23:06 ` Sean Hefty 0 siblings, 0 replies; 4+ messages in thread From: Sean Hefty @ 2009-10-07 23:06 UTC (permalink / raw) To: 'Roland Dreier' Cc: 'David J. Wilder', linux-rdma-u79uwXL29TY76Z2rM5mHXA, pradeep-r/Jw6+rmf7HQT0dZR+AlfA >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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-07 23:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-07 22:49 Failing to resolve local ipv6 address David J. Wilder
[not found] ` <1254955759.23471.7.camel-XfwDJb4SXxnMbYB6QlFGEg@public.gmane.org>
2009-10-07 22:55 ` [PATCH] rdma/cm: fix resolving " Sean Hefty
[not found] ` <26840C730CF948B48A185F3F073FFC04-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-10-07 23:04 ` Roland Dreier
[not found] ` <ada3a5uolfy.fsf-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2009-10-07 23:06 ` Sean Hefty
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox