[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201030081105.16623cc3@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net>
Date: Fri, 30 Oct 2020 08:11:05 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Alexander Ovechkin <ovov@...dex-team.ru>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH v2 net] ip6_tunnel: set inner ipproto before
ip6_tnl_encap
On Thu, 29 Oct 2020 20:10:12 +0300 Alexander Ovechkin wrote:
> ip6_tnl_encap assigns to proto transport protocol which
> encapsulates inner packet, but we must pass to set_inner_ipproto
> protocol of that inner packet.
>
> Calling set_inner_ipproto after ip6_tnl_encap might break gso.
> For example, in case of encapsulating ipv6 packet in fou6 packet, inner_ipproto
> would be set to IPPROTO_UDP instead of IPPROTO_IPV6. This would lead to
> incorrect calling sequence of gso functions:
> ipv6_gso_segment -> udp6_ufo_fragment -> skb_udp_tunnel_segment -> udp6_ufo_fragment
> instead of:
> ipv6_gso_segment -> udp6_ufo_fragment -> skb_udp_tunnel_segment -> ip6ip6_gso_segment
>
> Fixes: 6c11fbf97e69 ("ip6_tunnel: add MPLS transmit support")
> Signed-off-by: Alexander Ovechkin <ovov@...dex-team.ru>
Applied, thanks!
Powered by blists - more mailing lists