From: "David J. Wilder" <dwilder-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
pradeep-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org
Subject: Failing to resolve local ipv6 address.
Date: Wed, 07 Oct 2009 15:49:19 -0700 [thread overview]
Message-ID: <1254955759.23471.7.camel@wilder.ibm.com> (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"
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
next reply other threads:[~2009-10-07 22:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 22:49 David J. Wilder [this message]
[not found] ` <1254955759.23471.7.camel-XfwDJb4SXxnMbYB6QlFGEg@public.gmane.org>
2009-10-07 22:55 ` [PATCH] rdma/cm: fix resolving local ipv6 address 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1254955759.23471.7.camel@wilder.ibm.com \
--to=dwilder-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=pradeep-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox