]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: Convert iptable_mangle_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Wed, 7 Mar 2018 09:40:36 +0000 (12:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2018 17:36:45 +0000 (12:36 -0500)
These pernet_operations unregister net::ipv4::iptable_mangle table.
Another net/pernet_operations do not send ipv4 packets to foreign
net namespaces. So, we mark them async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/iptable_mangle.c

index dea138ca892543cbc560f56cb6aedc7aa93336f2..f6074059531ae031c71bc931a16a675c34574be8 100644 (file)
@@ -113,6 +113,7 @@ static void __net_exit iptable_mangle_net_exit(struct net *net)
 
 static struct pernet_operations iptable_mangle_net_ops = {
        .exit = iptable_mangle_net_exit,
+       .async = true,
 };
 
 static int __init iptable_mangle_init(void)