Re: [PATCH net v2 2/3] ipv6: Set skb->protocol properly for local output

2016-12-02 Thread David Miller
From: Eli Cooper Date: Thu, 1 Dec 2016 10:05:11 +0800 > 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

[PATCH net v2 2/3] ipv6: Set skb->protocol properly for local output

2016-11-30 Thread Eli Cooper
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 packe