From patchwork Mon Oct 19 23:43:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 54858 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9JNhaCs023110 for ; Mon, 19 Oct 2009 23:43:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757925AbZJSXnb (ORCPT ); Mon, 19 Oct 2009 19:43:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755128AbZJSXnb (ORCPT ); Mon, 19 Oct 2009 19:43:31 -0400 Received: from 139-142-54-143.atc.vaillant.ca ([139.142.54.143]:52897 "EHLO quartz.edm.orcorp.ca" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754719AbZJSXna (ORCPT ); Mon, 19 Oct 2009 19:43:30 -0400 Received: from [10.0.0.11] (helo=jggl.edm.orcorp.ca) by quartz.edm.orcorp.ca with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.68) (envelope-from ) id 1N01sw-000510-1b; Mon, 19 Oct 2009 17:43:30 -0600 Received: from jgg by jggl.edm.orcorp.ca with local (Exim 4.69) (envelope-from ) id 1N01sw-0003lr-0B; Mon, 19 Oct 2009 17:43:30 -0600 Date: Mon, 19 Oct 2009 17:43:29 -0600 From: Jason Gunthorpe To: "David J. Wilder" Cc: sean.hefty@intel.com, rdreier@cisco.com, linux-rdma , pradeep@us.ibm.com, ewg@lists.openfabrics.org Subject: Re: [PATCH] link-local address fix for rdma_resolve_addr Message-ID: <20091019234329.GC9643@obsidianresearch.com> References: <1255992430.12075.7.camel@wilder.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1255992430.12075.7.camel@wilder.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.11 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org --- a/drivers/infiniband/core/addr.c +++ b/drivers/infiniband/core/addr.c @@ -393,7 +393,7 @@ static int addr_resolve_local(struct sockaddr *src_in, 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;