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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 10:48:34 +0000 (11:48 +0100)
commitf40c064e933d7787ca7411b699504d7a2664c1f5
treea38c4233eb4010209d7a1d73b2eae26cc65dc3fe
parent226c60243593443bb5d315b3fc2116b72be858fe
ip6_gre: Avoid updating tunnel->tun_hlen in __gre6_xmit()

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>
net/ipv6/ip6_gre.c