]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ip6_gre: Avoid updating tunnel->tun_hlen in __gre6_xmit()
authorPeilin Ye <peilin.ye@bytedance.com>
Thu, 14 Apr 2022 20:34:26 +0000 (13:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:20:22 +0000 (12:20 +0200)
commitb099b29dd1cf3a6e82b93da741c933c4641b8eca
treed9e74c0cca1959e598717be425e68061836a9ea0
parentf8755e6cd4f0753c46e807cde01a323ac157546f
ip6_gre: Avoid updating tunnel->tun_hlen in __gre6_xmit()

[ Upstream commit f40c064e933d7787ca7411b699504d7a2664c1f5 ]

Do not update tunnel->tun_hlen in data plane code.  Use a local variable
instead, just like "tunnel_hlen" in net/ipv4/ip_gre.c:gre_fb_xmit().

Co-developed-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Peilin Ye <peilin.ye@bytedance.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/ip6_gre.c