skb: allow skb_scrub_packet() to be used by tunnels
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 2 Sep 2013 13:34:56 +0000 (15:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 04:27:25 +0000 (00:27 -0400)
commit8b27f27797cac5ed9b2f3e63dac89a7ae70e70a7
treec77b49fdf6883aab5bea6988d89f7e204f49329b
parent117961878cc1386923cfddcdd9016b777827c8dd
skb: allow skb_scrub_packet() to be used by tunnels

This function was only used when a packet was sent to another netns. Now, it can
also be used after tunnel encapsulation or decapsulation.

Only skb_orphan() should not be done when a packet is not crossing netns.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/dev.c
net/core/skbuff.c
net/ipv4/ip_tunnel.c
net/ipv6/ip6_tunnel.c
net/ipv6/sit.c