From: Paolo Abeni <pabeni@redhat.com>
To: Thomas Bogendoerfer <tbogendoerfer@suse.de>,
"David S. Miller" <davem@davemloft.net>,
David Ahern <dsahern@kernel.org>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] ip6_tunnel: Fix broken GRO
Date: Thu, 15 Aug 2024 12:44:37 +0200 [thread overview]
Message-ID: <1df13327-377c-41b7-9637-c873f3c1ddeb@redhat.com> (raw)
In-Reply-To: <20240813115910.87101-1-tbogendoerfer@suse.de>
On 8/13/24 13:59, Thomas Bogendoerfer wrote:
> GRO code checks for matching layer 2 headers to see, if packet belongs
> to the same flow and because ip6 tunnel set dev->hard_header_len
> this check fails in cases, where it shouldn't. To fix this don't
> set hard_header_len, but use needed_headroom like ipv4/ip_tunnel.c
> does.
>
> Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Please include a suitable fixes tag.
> @@ -1731,6 +1732,7 @@ ip6_tnl_siocdevprivate(struct net_device *dev, struct ifreq *ifr,
> int ip6_tnl_change_mtu(struct net_device *dev, int new_mtu)
> {
> struct ip6_tnl *tnl = netdev_priv(dev);
> + int t_hlen = tnl->hlen + sizeof(struct ipv6hdr);
Please respect the reverse xmas tree order above.
>
> if (tnl->parms.proto == IPPROTO_IPV6) {
> if (new_mtu < IPV6_MIN_MTU
Side node: it would be nice to extend the existing self-tests to cover
this kind of tunnels, too.
Thanks,
Paolo
prev parent reply other threads:[~2024-08-15 10:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 11:59 Thomas Bogendoerfer
2024-08-15 10:44 ` Paolo Abeni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1df13327-377c-41b7-9637-c873f3c1ddeb@redhat.com \
--to=pabeni@redhat.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tbogendoerfer@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®