From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] ipv6: Fix the upper MTU limit in GRE tunnel Date: Tue, 08 Oct 2013 16:52:39 -0400 (EDT) Message-ID: <20131008.165239.783847414637978838.davem@davemloft.net> References: <1381168205-7465-1-git-send-email-ou.ghorbel@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: ou.ghorbel@gmail.com Return-path: In-Reply-To: <1381168205-7465-1-git-send-email-ou.ghorbel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Oussama Ghorbel Date: Mon, 7 Oct 2013 18:50:05 +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 as the variable name suggest, but the simple way to fix > this without regression risk is simply modify the calculation of the limit > in ip6gre_tunnel_change_mtu function. > Verified in kernel version v3.11. > > Signed-off-by: Oussama Ghorbel > Acked-by: Hannes Frederic Sowa Applied.