diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2013-03-09 17:38:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-10 08:05:44 +0100 |
commit | 6aed0c8bf7d2f389b472834053eb6e3bd6926999 (patch) | |
tree | 0b180bcbbefd6e6e447b8771d50fe5371b75bd29 /net/ipv6/sit.c | |
parent | ipip: capture inner headers during encapsulation (diff) | |
download | linux-6aed0c8bf7d2f389b472834053eb6e3bd6926999.tar.xz linux-6aed0c8bf7d2f389b472834053eb6e3bd6926999.zip |
tunnel: use iptunnel_xmit() again
With recent patches from Pravin, most tunnels can't use iptunnel_xmit()
any more, due to ip_select_ident() and skb->ip_summed. But we can just
move these operations out of iptunnel_xmit(), so that tunnels can
use it again.
This by the way fixes a bug in vxlan (missing nf_reset()) for net-next.
Cc: Pravin B Shelar <pshelar@nicira.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/sit.c')
-rw-r--r-- | net/ipv6/sit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index 02f96dcbcf02..898e671a526b 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -899,6 +899,8 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb, if ((iph->ttl = tiph->ttl) == 0) iph->ttl = iph6->hop_limit; + skb->ip_summed = CHECKSUM_NONE; + ip_select_ident(iph, skb_dst(skb), NULL); iptunnel_xmit(skb, dev); return NETDEV_TX_OK; |