netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] sit: Set skb->protocol properly in ipip6_tunnel_xmit()
@ 2016-11-25  5:50 Eli Cooper
  2016-11-27  2:04 ` Stephen Rothwell
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Cooper @ 2016-11-25  5:50 UTC (permalink / raw)
  To: netdev, David S . Miller, Stephen Rothwell

Similar to commit ae148b085876
("ip6_tunnel: Update skb->protocol to ETH_P_IPV6 in ip6_tnl_xmit()"),
sit tunnels also need to update skb->protocol; otherwise, TSO/GSO packets
might not be properly segmented, which causes the packets being dropped.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Tested-by: Eli Cooper <elicooper@gmx.com>
Cc: stable@vger.kernel.org
Signed-off-by: Eli Cooper <elicooper@gmx.com>
---
 net/ipv6/sit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index b1cdf80..a05dceb 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -972,6 +972,7 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb,
 	}
 
 	skb_set_inner_ipproto(skb, IPPROTO_IPV6);
+	skb->protocol = htons(ETH_P_IP);
 
 	iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl,
 		      df, !net_eq(tunnel->net, dev_net(dev)));
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-11-28 20:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-25  5:50 [PATCH net] sit: Set skb->protocol properly in ipip6_tunnel_xmit() Eli Cooper
2016-11-27  2:04 ` Stephen Rothwell
2016-11-28 16:47   ` David Miller
2016-11-28 16:53     ` Eric Dumazet
2016-11-28 17:34       ` Eric Dumazet
2016-11-28 18:01         ` David Miller
2016-11-28 18:17           ` Eric Dumazet
2016-11-28 18:32             ` Eric Dumazet
2016-11-28 20:00               ` David Miller
2016-11-28 20:06             ` David Miller
2016-11-28 17:45       ` Alexander Duyck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).