[PATCH] ip6_tunnel: release cached dst on change of tunnel params

2006-02-23 Thread Hugo Santos
Hi,

   The included patch fixes ip6_tunnel to release the cached dst entry
 when the tunnel parameters (such as tunnel endpoints) are changed so
 they are used immediatly for the next encapsulated packets.

 Signed-off-by: Hugo Santos <[EMAIL PROTECTED]>

--- linux-2.6.16-rc4/net/ipv6/ip6_tunnel.c  2006-02-17 22:23:45.0 
+
+++ linux-2.6.16-rc4-new/net/ipv6/ip6_tunnel.c  2006-02-24 01:40:17.0 
+
@@ -884,6 +884,7 @@ ip6ip6_tnl_change(struct ip6_tnl *t, str
t->parms.encap_limit = p->encap_limit;
t->parms.flowinfo = p->flowinfo;
t->parms.link = p->link;
+   ip6_tnl_dst_reset(t);
ip6ip6_tnl_link_config(t);
return 0;
 }



signature.asc
Description: Digital signature


Re: [PATCH] ip6_tunnel: release cached dst on change of tunnel params

2006-02-24 Thread Ville Nuorvala

Hugo Santos wrote:

Hi,

   The included patch fixes ip6_tunnel to release the cached dst entry
 when the tunnel parameters (such as tunnel endpoints) are changed so
 they are used immediatly for the next encapsulated packets.

 Signed-off-by: Hugo Santos <[EMAIL PROTECTED]>

--- linux-2.6.16-rc4/net/ipv6/ip6_tunnel.c  2006-02-17 22:23:45.0 
+
+++ linux-2.6.16-rc4-new/net/ipv6/ip6_tunnel.c  2006-02-24 01:40:17.0 
+
@@ -884,6 +884,7 @@ ip6ip6_tnl_change(struct ip6_tnl *t, str
t->parms.encap_limit = p->encap_limit;
t->parms.flowinfo = p->flowinfo;
t->parms.link = p->link;
+   ip6_tnl_dst_reset(t);
ip6ip6_tnl_link_config(t);
return 0;
 }


Acked-by: Ville Nuorvala <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] ip6_tunnel: release cached dst on change of tunnel params

2006-02-24 Thread David S. Miller
From: Ville Nuorvala <[EMAIL PROTECTED]>
Date: Fri, 24 Feb 2006 15:55:23 +0200

> Hugo Santos wrote:
> > Hi,
> > 
> >The included patch fixes ip6_tunnel to release the cached dst entry
> >  when the tunnel parameters (such as tunnel endpoints) are changed so
> >  they are used immediatly for the next encapsulated packets.
> > 
> >  Signed-off-by: Hugo Santos <[EMAIL PROTECTED]>
> > 
> > --- linux-2.6.16-rc4/net/ipv6/ip6_tunnel.c  2006-02-17 
> > 22:23:45.0 +
> > +++ linux-2.6.16-rc4-new/net/ipv6/ip6_tunnel.c  2006-02-24 
> > 01:40:17.0 +
> > @@ -884,6 +884,7 @@ ip6ip6_tnl_change(struct ip6_tnl *t, str
> > t->parms.encap_limit = p->encap_limit;
> > t->parms.flowinfo = p->flowinfo;
> > t->parms.link = p->link;
> > +   ip6_tnl_dst_reset(t);
> > ip6ip6_tnl_link_config(t);
> > return 0;
> >  }
> > 
> Acked-by: Ville Nuorvala <[EMAIL PROTECTED]>

Applied, although the patch was tab/whitespace damaged by Hugo's
email client so I had to apply it by hand.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html