All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] rdma: copy the saddr if it is already resolved
@ 2017-06-09 10:49 Raju Rangoju
       [not found] ` <20170609104925.28927-1-rajur-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Raju Rangoju @ 2017-06-09 10:49 UTC (permalink / raw)
  To: dledford-H+wXaHxf7aLQT0dZR+AlfA, linux-rdma-u79uwXL29TY76Z2rM5mHXA
  Cc: swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW, rajur-ut6Up61K2wZBDgjK7y7TUQ

The recent changes to addr6_resolve() to call ipv6 route lookup via
the stub interface broke cxgb4/ipv6. If the source address is already
resolved by ipv6_dst_lookup() then the check ipv6_addr_any(&fl6.saddr)
would fail; consequently, copying saddr to the src_in buffer is omitted.

This commit addresses the above issue by moving the copy code out of
the ipv6_addr_any() block in addr6_resolve().

Signed-off-by: Raju Rangoju <rajur-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
---
 drivers/infiniband/core/addr.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c
index 02971e239a18..c32477907765 100644
--- a/drivers/infiniband/core/addr.c
+++ b/drivers/infiniband/core/addr.c
@@ -454,11 +454,11 @@ static int addr6_resolve(struct sockaddr_in6 *src_in,
 					 &fl6.daddr, 0, &fl6.saddr);
 		if (ret)
 			goto put;
-
-		src_in->sin6_family = AF_INET6;
-		src_in->sin6_addr = fl6.saddr;
 	}
 
+	src_in->sin6_family = AF_INET6;
+	src_in->sin6_addr = fl6.saddr;
+
 	/* If there's a gateway and type of device not ARPHRD_INFINIBAND, we're
 	 * definitely in RoCE v2 (as RoCE v1 isn't routable) set the network
 	 * type accordingly.
-- 
2.13.1

--
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 related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] rdma: copy the saddr if it is already resolved
       [not found] ` <20170609104925.28927-1-rajur-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
@ 2017-06-14 19:24   ` Doug Ledford
       [not found]     ` <1497468245.7171.260.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Doug Ledford @ 2017-06-14 19:24 UTC (permalink / raw)
  To: Raju Rangoju, linux-rdma-u79uwXL29TY76Z2rM5mHXA
  Cc: swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW

On Fri, 2017-06-09 at 16:19 +0530, Raju Rangoju wrote:
> The recent changes to addr6_resolve() to call ipv6 route lookup via
> the stub interface broke cxgb4/ipv6. If the source address is already
> resolved by ipv6_dst_lookup() then the check
> ipv6_addr_any(&fl6.saddr)
> would fail; consequently, copying saddr to the src_in buffer is
> omitted.
> 
> This commit addresses the above issue by moving the copy code out of
> the ipv6_addr_any() block in addr6_resolve().
> 
> Signed-off-by: Raju Rangoju <rajur-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
> ---
>  drivers/infiniband/core/addr.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/infiniband/core/addr.c
> b/drivers/infiniband/core/addr.c
> index 02971e239a18..c32477907765 100644
> --- a/drivers/infiniband/core/addr.c
> +++ b/drivers/infiniband/core/addr.c
> @@ -454,11 +454,11 @@ static int addr6_resolve(struct sockaddr_in6
> *src_in,
>  					 &fl6.daddr, 0, &fl6.saddr);
>  		if (ret)
>  			goto put;
> -
> -		src_in->sin6_family = AF_INET6;
> -		src_in->sin6_addr = fl6.saddr;
>  	}
>  
> +	src_in->sin6_family = AF_INET6;
> +	src_in->sin6_addr = fl6.saddr;
> +
>  	/* If there's a gateway and type of device not
> ARPHRD_INFINIBAND, we're
>  	 * definitely in RoCE v2 (as RoCE v1 isn't routable) set the
> network
>  	 * type accordingly.

There was a different fix for this submitted by Roland Drier.  It has
been taken into my k.o/for-4.12-rc branch.  I need you to check that
his patch works for you and renders this patch no longer needed.

-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

--
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] 8+ messages in thread

* Re: [PATCH 1/1] rdma: copy the saddr if it is already resolved
       [not found]     ` <1497468245.7171.260.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-06-14 22:28       ` Robert LeBlanc
       [not found]         ` <CAANLjFo=VOhUSb494rskZ38fHn=xSUYPi+XL4Vuu0R1Y0czmSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Robert LeBlanc @ 2017-06-14 22:28 UTC (permalink / raw)
  To: Doug Ledford; +Cc: Raju Rangoju, linux-rdma, SWise OGC

Doug,

I've run into this with 4.9.30. The aforementioned patch fixes it in
the 4.9 series, but also requires 24b43c996 as well. Can we get this
fix into stable. If needed you can add me as tested-by.

Tested-by: Robert LeBlanc <robert-4JaGZRWAfWbajFs6igw21g@public.gmane.org>
----------------
Robert LeBlanc
PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1


On Wed, Jun 14, 2017 at 1:24 PM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> On Fri, 2017-06-09 at 16:19 +0530, Raju Rangoju wrote:
>> The recent changes to addr6_resolve() to call ipv6 route lookup via
>> the stub interface broke cxgb4/ipv6. If the source address is already
>> resolved by ipv6_dst_lookup() then the check
>> ipv6_addr_any(&fl6.saddr)
>> would fail; consequently, copying saddr to the src_in buffer is
>> omitted.
>>
>> This commit addresses the above issue by moving the copy code out of
>> the ipv6_addr_any() block in addr6_resolve().
>>
>> Signed-off-by: Raju Rangoju <rajur-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
>> ---
>>  drivers/infiniband/core/addr.c | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/infiniband/core/addr.c
>> b/drivers/infiniband/core/addr.c
>> index 02971e239a18..c32477907765 100644
>> --- a/drivers/infiniband/core/addr.c
>> +++ b/drivers/infiniband/core/addr.c
>> @@ -454,11 +454,11 @@ static int addr6_resolve(struct sockaddr_in6
>> *src_in,
>>                                        &fl6.daddr, 0, &fl6.saddr);
>>               if (ret)
>>                       goto put;
>> -
>> -             src_in->sin6_family = AF_INET6;
>> -             src_in->sin6_addr = fl6.saddr;
>>       }
>>
>> +     src_in->sin6_family = AF_INET6;
>> +     src_in->sin6_addr = fl6.saddr;
>> +
>>       /* If there's a gateway and type of device not
>> ARPHRD_INFINIBAND, we're
>>        * definitely in RoCE v2 (as RoCE v1 isn't routable) set the
>> network
>>        * type accordingly.
>
> There was a different fix for this submitted by Roland Drier.  It has
> been taken into my k.o/for-4.12-rc branch.  I need you to check that
> his patch works for you and renders this patch no longer needed.
>
> --
> Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
>     GPG KeyID: B826A3330E572FDD
>
> Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD
>
> --
> 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
--
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] 8+ messages in thread

* Re: [PATCH 1/1] rdma: copy the saddr if it is already resolved
       [not found]         ` <CAANLjFo=VOhUSb494rskZ38fHn=xSUYPi+XL4Vuu0R1Y0czmSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-06-15  0:12           ` Doug Ledford
       [not found]             ` <1497485577.7171.273.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Doug Ledford @ 2017-06-15  0:12 UTC (permalink / raw)
  To: Robert LeBlanc; +Cc: Raju Rangoju, linux-rdma, SWise OGC

On Wed, 2017-06-14 at 16:28 -0600, Robert LeBlanc wrote:
> Doug,
> 
> I've run into this with 4.9.30. The aforementioned patch fixes it in
> the 4.9 series, but also requires 24b43c996 as well. Can we get this
> fix into stable. If needed you can add me as tested-by.
> 
> Tested-by: Robert LeBlanc <robert-4JaGZRWAfWbajFs6igw21g@public.gmane.org>

While I don't doubt that this fixed the problem, the patch from Roland
Drier looks more correct to me.  As I've already taken Roland's patch,
and it is Cc:ed for stable, it should be resolved already.  I just need
Raju to confirm this for me.

> ----------------
> Robert LeBlanc
> PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1
> 
> 
> On Wed, Jun 14, 2017 at 1:24 PM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> wrote:
> > 
> > On Fri, 2017-06-09 at 16:19 +0530, Raju Rangoju wrote:
> > > 
> > > The recent changes to addr6_resolve() to call ipv6 route lookup
> > > via
> > > the stub interface broke cxgb4/ipv6. If the source address is
> > > already
> > > resolved by ipv6_dst_lookup() then the check
> > > ipv6_addr_any(&fl6.saddr)
> > > would fail; consequently, copying saddr to the src_in buffer is
> > > omitted.
> > > 
> > > This commit addresses the above issue by moving the copy code out
> > > of
> > > the ipv6_addr_any() block in addr6_resolve().
> > > 
> > > Signed-off-by: Raju Rangoju <rajur-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
> > > ---
> > >  drivers/infiniband/core/addr.c | 6 +++---
> > >  1 file changed, 3 insertions(+), 3 deletions(-)
> > > 
> > > diff --git a/drivers/infiniband/core/addr.c
> > > b/drivers/infiniband/core/addr.c
> > > index 02971e239a18..c32477907765 100644
> > > --- a/drivers/infiniband/core/addr.c
> > > +++ b/drivers/infiniband/core/addr.c
> > > @@ -454,11 +454,11 @@ static int addr6_resolve(struct
> > > sockaddr_in6
> > > *src_in,
> > >                                        &fl6.daddr, 0,
> > > &fl6.saddr);
> > >               if (ret)
> > >                       goto put;
> > > -
> > > -             src_in->sin6_family = AF_INET6;
> > > -             src_in->sin6_addr = fl6.saddr;
> > >       }
> > > 
> > > +     src_in->sin6_family = AF_INET6;
> > > +     src_in->sin6_addr = fl6.saddr;
> > > +
> > >       /* If there's a gateway and type of device not
> > > ARPHRD_INFINIBAND, we're
> > >        * definitely in RoCE v2 (as RoCE v1 isn't routable) set
> > > the
> > > network
> > >        * type accordingly.
> > 
> > There was a different fix for this submitted by Roland Drier.  It
> > has
> > been taken into my k.o/for-4.12-rc branch.  I need you to check
> > that
> > his patch works for you and renders this patch no longer needed.
> > 
> > --
> > Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> >     GPG KeyID: B826A3330E572FDD
> > 
> > Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57
> > 2FDD
> > 
> > --
> > 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
-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

--
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] 8+ messages in thread

* RE: [PATCH 1/1] rdma: copy the saddr if it is already resolved
       [not found]             ` <1497485577.7171.273.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-06-15  9:19               ` Raju  Rangoju
       [not found]                 ` <CY1PR12MB07743C4FE35D249D4522EAFFBCC00-1s8aH8ViOEdztePUUsNjzQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  2017-06-15 15:20               ` Robert LeBlanc
  1 sibling, 1 reply; 8+ messages in thread
From: Raju  Rangoju @ 2017-06-15  9:19 UTC (permalink / raw)
  To: Doug Ledford, Robert LeBlanc; +Cc: linux-rdma, SWise OGC

Hi Doug,

Roland Drier's patch works for me, you could add me as Tested-by.

-Thanks,

-----Original Message-----
From: Doug Ledford [mailto:dledford@redhat.com] 
Sent: 15 June 2017 05:43
To: Robert LeBlanc <robert@leblancnet.us>
Cc: Raju Rangoju <rajur@chelsio.com>; linux-rdma <linux-rdma@vger.kernel.org>; SWise OGC <swise@opengridcomputing.com>
Subject: Re: [PATCH 1/1] rdma: copy the saddr if it is already resolved

On Wed, 2017-06-14 at 16:28 -0600, Robert LeBlanc wrote:
> Doug,
> 
> I've run into this with 4.9.30. The aforementioned patch fixes it in 
> the 4.9 series, but also requires 24b43c996 as well. Can we get this 
> fix into stable. If needed you can add me as tested-by.
> 
> Tested-by: Robert LeBlanc <robert@leblancnet.us>

While I don't doubt that this fixed the problem, the patch from Roland Drier looks more correct to me.  As I've already taken Roland's patch, and it is Cc:ed for stable, it should be resolved already.  I just need Raju to confirm this for me.

> ----------------
> Robert LeBlanc
> PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1
> 
> 
> On Wed, Jun 14, 2017 at 1:24 PM, Doug Ledford <dledford@redhat.com>
> wrote:
> > 
> > On Fri, 2017-06-09 at 16:19 +0530, Raju Rangoju wrote:
> > > 
> > > The recent changes to addr6_resolve() to call ipv6 route lookup 
> > > via the stub interface broke cxgb4/ipv6. If the source address is 
> > > already resolved by ipv6_dst_lookup() then the check
> > > ipv6_addr_any(&fl6.saddr)
> > > would fail; consequently, copying saddr to the src_in buffer is 
> > > omitted.
> > > 
> > > This commit addresses the above issue by moving the copy code out 
> > > of the ipv6_addr_any() block in addr6_resolve().
> > > 
> > > Signed-off-by: Raju Rangoju <rajur@chelsio.com>
> > > ---
> > >  drivers/infiniband/core/addr.c | 6 +++---
> > >  1 file changed, 3 insertions(+), 3 deletions(-)
> > > 
> > > diff --git a/drivers/infiniband/core/addr.c 
> > > b/drivers/infiniband/core/addr.c index 02971e239a18..c32477907765 
> > > 100644
> > > --- a/drivers/infiniband/core/addr.c
> > > +++ b/drivers/infiniband/core/addr.c
> > > @@ -454,11 +454,11 @@ static int addr6_resolve(struct
> > > sockaddr_in6
> > > *src_in,
> > >                                        &fl6.daddr, 0, &fl6.saddr);
> > >               if (ret)
> > >                       goto put;
> > > -
> > > -             src_in->sin6_family = AF_INET6;
> > > -             src_in->sin6_addr = fl6.saddr;
> > >       }
> > > 
> > > +     src_in->sin6_family = AF_INET6;
> > > +     src_in->sin6_addr = fl6.saddr;
> > > +
> > >       /* If there's a gateway and type of device not 
> > > ARPHRD_INFINIBAND, we're
> > >        * definitely in RoCE v2 (as RoCE v1 isn't routable) set the 
> > > network
> > >        * type accordingly.
> > 
> > There was a different fix for this submitted by Roland Drier.  It 
> > has been taken into my k.o/for-4.12-rc branch.  I need you to check 
> > that his patch works for you and renders this patch no longer 
> > needed.
> > 
> > --
> > Doug Ledford <dledford@redhat.com>
> >     GPG KeyID: B826A3330E572FDD
> > 
> > Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD
> > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux- 
> > rdma" in the body of a message to majordomo@vger.kernel.org More 
> > majordomo info at  http://vger.kernel.org/majordomo-info.html
--
Doug Ledford <dledford@redhat.com>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/1] rdma: copy the saddr if it is already resolved
       [not found]             ` <1497485577.7171.273.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2017-06-15  9:19               ` Raju  Rangoju
@ 2017-06-15 15:20               ` Robert LeBlanc
       [not found]                 ` <CAANLjFo2GXw8kTXDO87k9oaER5PxXZTb0JAV3qHqRz8aHxA7FA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Robert LeBlanc @ 2017-06-15 15:20 UTC (permalink / raw)
  To: Doug Ledford; +Cc: Raju Rangoju, linux-rdma, SWise OGC

On Wed, Jun 14, 2017 at 6:12 PM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> On Wed, 2017-06-14 at 16:28 -0600, Robert LeBlanc wrote:
>> Doug,
>>
>> I've run into this with 4.9.30. The aforementioned patch fixes it in
>> the 4.9 series, but also requires 24b43c996 as well. Can we get this
>> fix into stable. If needed you can add me as tested-by.
>>
>> Tested-by: Robert LeBlanc <robert-4JaGZRWAfWbajFs6igw21g@public.gmane.org>
>
> While I don't doubt that this fixed the problem, the patch from Roland
> Drier looks more correct to me.  As I've already taken Roland's patch,
> and it is Cc:ed for stable, it should be resolved already.  I just need
> Raju to confirm this for me.

Sorry, I meant to say that I tested Roland's patch and it fixes the
issue for us. Thanks for getting this sent to stable.

----------------
Robert LeBlanc
PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1
--
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] 8+ messages in thread

* Re: [PATCH 1/1] rdma: copy the saddr if it is already resolved
       [not found]                 ` <CY1PR12MB07743C4FE35D249D4522EAFFBCC00-1s8aH8ViOEdztePUUsNjzQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2017-06-15 19:45                   ` Doug Ledford
  0 siblings, 0 replies; 8+ messages in thread
From: Doug Ledford @ 2017-06-15 19:45 UTC (permalink / raw)
  To: Raju Rangoju, Robert LeBlanc; +Cc: linux-rdma, SWise OGC

On Thu, 2017-06-15 at 09:19 +0000, Raju  Rangoju wrote:
> Hi Doug,
> 
> Roland Drier's patch works for me, you could add me as Tested-by.

I've added a git notes entry for your testing.  Thanks.

> -Thanks,
> 
> -----Original Message-----
> From: Doug Ledford [mailto:dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org] 
> Sent: 15 June 2017 05:43
> To: Robert LeBlanc <robert-4JaGZRWAfWbajFs6igw21g@public.gmane.org>
> Cc: Raju Rangoju <rajur-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>; linux-rdma <linux-rdma-u79uwXL29TY@public.gmane.org
> nel.org>; SWise OGC <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
> Subject: Re: [PATCH 1/1] rdma: copy the saddr if it is already
> resolved
> 
> On Wed, 2017-06-14 at 16:28 -0600, Robert LeBlanc wrote:
> > 
> > Doug,
> > 
> > I've run into this with 4.9.30. The aforementioned patch fixes it
> > in 
> > the 4.9 series, but also requires 24b43c996 as well. Can we get
> > this 
> > fix into stable. If needed you can add me as tested-by.
> > 
> > Tested-by: Robert LeBlanc <robert-4JaGZRWAfWbajFs6igw21g@public.gmane.org>
> 
> While I don't doubt that this fixed the problem, the patch from
> Roland Drier looks more correct to me.  As I've already taken
> Roland's patch, and it is Cc:ed for stable, it should be resolved
> already.  I just need Raju to confirm this for me.
> 
> > 
> > ----------------
> > Robert LeBlanc
> > PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1
> > 
> > 
> > On Wed, Jun 14, 2017 at 1:24 PM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > wrote:
> > > 
> > > 
> > > On Fri, 2017-06-09 at 16:19 +0530, Raju Rangoju wrote:
> > > > 
> > > > 
> > > > The recent changes to addr6_resolve() to call ipv6 route
> > > > lookup 
> > > > via the stub interface broke cxgb4/ipv6. If the source address
> > > > is 
> > > > already resolved by ipv6_dst_lookup() then the check
> > > > ipv6_addr_any(&fl6.saddr)
> > > > would fail; consequently, copying saddr to the src_in buffer
> > > > is 
> > > > omitted.
> > > > 
> > > > This commit addresses the above issue by moving the copy code
> > > > out 
> > > > of the ipv6_addr_any() block in addr6_resolve().
> > > > 
> > > > Signed-off-by: Raju Rangoju <rajur-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
> > > > ---
> > > >  drivers/infiniband/core/addr.c | 6 +++---
> > > >  1 file changed, 3 insertions(+), 3 deletions(-)
> > > > 
> > > > diff --git a/drivers/infiniband/core/addr.c 
> > > > b/drivers/infiniband/core/addr.c index
> > > > 02971e239a18..c32477907765 
> > > > 100644
> > > > --- a/drivers/infiniband/core/addr.c
> > > > +++ b/drivers/infiniband/core/addr.c
> > > > @@ -454,11 +454,11 @@ static int addr6_resolve(struct
> > > > sockaddr_in6
> > > > *src_in,
> > > >                                        &fl6.daddr, 0,
> > > > &fl6.saddr);
> > > >               if (ret)
> > > >                       goto put;
> > > > -
> > > > -             src_in->sin6_family = AF_INET6;
> > > > -             src_in->sin6_addr = fl6.saddr;
> > > >       }
> > > > 
> > > > +     src_in->sin6_family = AF_INET6;
> > > > +     src_in->sin6_addr = fl6.saddr;
> > > > +
> > > >       /* If there's a gateway and type of device not 
> > > > ARPHRD_INFINIBAND, we're
> > > >        * definitely in RoCE v2 (as RoCE v1 isn't routable) set
> > > > the 
> > > > network
> > > >        * type accordingly.
> > > 
> > > There was a different fix for this submitted by Roland
> > > Drier.  It 
> > > has been taken into my k.o/for-4.12-rc branch.  I need you to
> > > check 
> > > that his patch works for you and renders this patch no longer 
> > > needed.
> > > 
> > > --
> > > Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > >     GPG KeyID: B826A3330E572FDD
> > > 
> > > Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57
> > > 2FDD
> > > 
> > > --
> > > 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
> --
> Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
>     GPG KeyID: B826A3330E572FDD
>    
> Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD
> 
-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

--
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] 8+ messages in thread

* Re: [PATCH 1/1] rdma: copy the saddr if it is already resolved
       [not found]                 ` <CAANLjFo2GXw8kTXDO87k9oaER5PxXZTb0JAV3qHqRz8aHxA7FA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-06-15 19:46                   ` Doug Ledford
  0 siblings, 0 replies; 8+ messages in thread
From: Doug Ledford @ 2017-06-15 19:46 UTC (permalink / raw)
  To: Robert LeBlanc; +Cc: Raju Rangoju, linux-rdma, SWise OGC

On Thu, 2017-06-15 at 09:20 -0600, Robert LeBlanc wrote:
> On Wed, Jun 14, 2017 at 6:12 PM, Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> wrote:
> > 
> > On Wed, 2017-06-14 at 16:28 -0600, Robert LeBlanc wrote:
> > > 
> > > Doug,
> > > 
> > > I've run into this with 4.9.30. The aforementioned patch fixes it
> > > in
> > > the 4.9 series, but also requires 24b43c996 as well. Can we get
> > > this
> > > fix into stable. If needed you can add me as tested-by.
> > > 
> > > Tested-by: Robert LeBlanc <robert-4JaGZRWAfWbajFs6igw21g@public.gmane.org>
> > 
> > While I don't doubt that this fixed the problem, the patch from
> > Roland
> > Drier looks more correct to me.  As I've already taken Roland's
> > patch,
> > and it is Cc:ed for stable, it should be resolved already.  I just
> > need
> > Raju to confirm this for me.
> 
> Sorry, I meant to say that I tested Roland's patch and it fixes the
> issue for us. Thanks for getting this sent to stable.

I've added a git notes entry for your testing.  Thanks.

-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

--
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] 8+ messages in thread

end of thread, other threads:[~2017-06-15 19:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-09 10:49 [PATCH 1/1] rdma: copy the saddr if it is already resolved Raju Rangoju
     [not found] ` <20170609104925.28927-1-rajur-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>
2017-06-14 19:24   ` Doug Ledford
     [not found]     ` <1497468245.7171.260.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-06-14 22:28       ` Robert LeBlanc
     [not found]         ` <CAANLjFo=VOhUSb494rskZ38fHn=xSUYPi+XL4Vuu0R1Y0czmSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-15  0:12           ` Doug Ledford
     [not found]             ` <1497485577.7171.273.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-06-15  9:19               ` Raju  Rangoju
     [not found]                 ` <CY1PR12MB07743C4FE35D249D4522EAFFBCC00-1s8aH8ViOEdztePUUsNjzQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-06-15 19:45                   ` Doug Ledford
2017-06-15 15:20               ` Robert LeBlanc
     [not found]                 ` <CAANLjFo2GXw8kTXDO87k9oaER5PxXZTb0JAV3qHqRz8aHxA7FA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-15 19:46                   ` Doug Ledford

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.