gre: Fix GREv4 TCPv6 segmentation.
authorPravin B Shelar <pshelar@nicira.com>
Thu, 2 May 2013 16:14:19 +0000 (16:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 May 2013 20:08:58 +0000 (16:08 -0400)
commit9b3eb5edf33897dc9128aa27300066153d4f8b9c
treef4881f9cc2e54a7741ba4b0ef9e04e4094c2c43d
parent83401eb4990ff6af55aeed8f49681558544192e6
gre: Fix GREv4 TCPv6 segmentation.

For ipv6 traffic, GRE can generate packet with strange GSO
bits, e.g. ipv4 packet with SKB_GSO_TCPV6 flag set.  Therefore
following patch relaxes check in inet gso handler to allow
such packet for segmentation.
This patch also fixes wrong skb->protocol set that was done in
gre_gso_segment() handler.

Reported-by: Steinar H. Gunderson <sesse@google.com>
CC: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv4/gre.c