]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_tunnel: Update skb->protocol to ETH_P_IPV6 in ip6_tnl_xmit()
authorEli Cooper <elicooper@gmx.com>
Wed, 26 Oct 2016 02:11:09 +0000 (10:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 18:49:31 +0000 (14:49 -0400)
commit6f7fa46c202e0f164d9331c52f1c369c65c60641
tree1691ca015efceff4d216dd2a217615d547b85b6b
parent29346dbf3c9589b8457a8487ed5deabe70310777
ip6_tunnel: Update skb->protocol to ETH_P_IPV6 in ip6_tnl_xmit()

This patch updates skb->protocol to ETH_P_IPV6 in ip6_tnl_xmit() when an
IPv6 header is installed to a socket buffer.

This is not a cosmetic change.  Without updating this value, GSO packets
transmitted through an ipip6 tunnel have the protocol of ETH_P_IP and
skb_mac_gso_segment() will attempt to call gso_segment() for IPv4,
which results in the packets being dropped.

Fixes: dde2806a3fc5 ("ip4ip6: Support for GSO/GRO")
Signed-off-by: Eli Cooper <elicooper@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c