]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 10:48:34 +0000 (11:48 +0100)
commit55bf2575f8195108517590da3a5d450d48ab728a
treea38c4233eb4010209d7a1d73b2eae26cc65dc3fe
parent6287a5e62ae868d64e62a84814169da5349fde7e
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