Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-07 Thread David Miller
From: Oussama Ghorbel Date: Mon, 7 Oct 2013 18:52:15 +0100 > Sorry for that. I've added it and I have resubmitted the patch. Thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http:/

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-07 Thread Oussama Ghorbel
On Mon, Oct 7, 2013 at 3:02 AM, Hannes Frederic Sowa wrote: > On Sun, Oct 06, 2013 at 08:18:15PM +0100, Oussama Ghorbel wrote: >> Yes, to summarize, the idea of this patch was to fix the incoherence >> in the condition of ip6gre_tunnel_change_mtu function >> >> if (new_mtu < 68 || >>new_mtu

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-07 Thread Oussama Ghorbel
Sorry for that. I've added it and I have resubmitted the patch. Thanks On Mon, Oct 7, 2013 at 6:38 PM, David Miller wrote: > From: Oussama Ghorbel > Date: Mon, 7 Oct 2013 18:34:53 +0100 > >> OK, I've resubmitted the patch with the proper Subject line. >> The new mail subject is: [PATCH] ipv6:

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-07 Thread David Miller
From: Oussama Ghorbel Date: Mon, 7 Oct 2013 18:34:53 +0100 > OK, I've resubmitted the patch with the proper Subject line. > The new mail subject is: [PATCH] ipv6: Fix the upper MTU limit in GRE tunnel You forgot to propagate the "Acked-by: " tag that was given by reviewers of your patch. -- To u

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-07 Thread Oussama Ghorbel
OK, I've resubmitted the patch with the proper Subject line. The new mail subject is: [PATCH] ipv6: Fix the upper MTU limit in GRE tunnel Thanks, Oussama On Mon, Oct 7, 2013 at 5:53 PM, David Miller wrote: > From: Oussama Ghorbel > Date: Fri, 4 Oct 2013 10:52:13 +0100 > >> Unlike ipv4, the st

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-07 Thread David Miller
From: Oussama Ghorbel Date: Fri, 4 Oct 2013 10:52:13 +0100 > Unlike ipv4, the struct member hlen holds the length of the GRE and ipv6 > headers. This length is also counted in dev->hard_header_len. > Perhaps, it's more clean to modify the hlen to count only the GRE header > without ipv6 header a

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-06 Thread Hannes Frederic Sowa
On Sun, Oct 06, 2013 at 08:18:15PM +0100, Oussama Ghorbel wrote: > Yes, to summarize, the idea of this patch was to fix the incoherence > in the condition of ip6gre_tunnel_change_mtu function > > if (new_mtu < 68 || >new_mtu > 0xFFF8 - dev->hard_header_len - tunnel->hlen) > > From the ip6gr

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-06 Thread Oussama Ghorbel
Yes, to summarize, the idea of this patch was to fix the incoherence in the condition of ip6gre_tunnel_change_mtu function if (new_mtu < 68 || new_mtu > 0xFFF8 - dev->hard_header_len - tunnel->hlen) >From the ip6gre_tnl_link_config function we can see that: The variable addend is equal the i

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-06 Thread Hannes Frederic Sowa
On Sun, Oct 06, 2013 at 04:36:56PM +0100, Oussama Ghorbel wrote: > On Sun, Oct 6, 2013 at 4:13 PM, Hannes Frederic Sowa > wrote: > > On Sun, Oct 06, 2013 at 03:42:15PM +0100, Oussama Ghorbel wrote: > >> The initialization in ip6gre_tnl_link_config is done as the following: > >> static void ip6gre

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-06 Thread Oussama Ghorbel
On Sun, Oct 6, 2013 at 4:13 PM, Hannes Frederic Sowa wrote: > On Sun, Oct 06, 2013 at 03:42:15PM +0100, Oussama Ghorbel wrote: >> The initialization in ip6gre_tnl_link_config is done as the following: >> static void ip6gre_tnl_link_config(struct ip6_tnl *t, int set_mtu) >> { >> ... >> int addend

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-06 Thread Hannes Frederic Sowa
On Sun, Oct 06, 2013 at 03:42:15PM +0100, Oussama Ghorbel wrote: > The initialization in ip6gre_tnl_link_config is done as the following: > static void ip6gre_tnl_link_config(struct ip6_tnl *t, int set_mtu) > { > ... > int addend = sizeof(struct ipv6hdr) + 4; > ... > /* Precalculate GRE options le

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-06 Thread Oussama Ghorbel
On Sat, Oct 5, 2013 at 3:06 PM, Hannes Frederic Sowa wrote: > On Fri, Oct 04, 2013 at 10:52:13AM +0100, Oussama Ghorbel wrote: >> Unlike ipv4, the struct member hlen holds the length of the GRE and ipv6 >> headers. This length is also counted in dev->hard_header_len. >> Perhaps, it's more clean to

Re: [PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-05 Thread Hannes Frederic Sowa
On Fri, Oct 04, 2013 at 10:52:13AM +0100, Oussama Ghorbel wrote: > Unlike ipv4, the struct member hlen holds the length of the GRE and ipv6 > headers. This length is also counted in dev->hard_header_len. > Perhaps, it's more clean to modify the hlen to count only the GRE header > without ipv6 heade

[PATCH] Fix the upper MTU limit in ipv6 GRE tunnel

2013-10-04 Thread Oussama Ghorbel
Unlike ipv4, the struct member hlen holds the length of the GRE and ipv6 headers. This length is also counted in dev->hard_header_len. Perhaps, it's more clean to modify the hlen to count only the GRE header without ipv6 header as the variable name suggest, but the simple way to fix this without re