Eli Cooper f418043910 ipv4: 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_IP before dst_output() is called,
fixing a bug where GSO packets sent through a sit 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-11-29 20:45:54 -05:00
2016-10-20 14:32:22 -04:00
2016-10-20 14:32:22 -04:00
2016-10-26 17:33:22 -04:00
2016-09-21 00:23:01 -04:00
2016-09-21 00:23:01 -04:00
2016-09-01 14:09:01 -07:00
2016-09-21 00:23:00 -04:00
2016-11-03 16:12:06 -04:00
2016-10-20 14:32:22 -04:00
2016-11-24 15:32:14 -05:00