Eli Cooper b4e479a96f ipv6: Set skb->protocol properly for local output
When xfrm is applied to TSO/GSO packets, it follows this path:

    xfrm_output() -> xfrm_output_gso() -> skb_gso_segment()

where skb_gso_segment() relies on skb->protocol to function properly.

This patch sets skb->protocol to ETH_P_IPV6 before dst_output() is called,
fixing a bug where GSO packets sent through an ipip6 tunnel are dropped
when xfrm is involved.

Cc: stable@vger.kernel.org
Signed-off-by: Eli Cooper <elicooper@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-02 12:34:22 -05:00
..
2016-09-01 14:09:01 -07:00
2015-08-25 13:37:31 -07:00
2016-09-10 23:12:51 -07:00
2016-11-28 16:13:01 -05:00
2016-10-20 14:32:22 -04:00
2016-05-31 14:07:49 -07:00
2016-09-10 23:12:52 -07:00
2016-06-27 15:06:17 -04:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2016-11-24 15:32:14 -05:00
2016-09-21 10:09:14 +02:00
2016-09-21 10:09:14 +02:00