]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: Convert iptable_filter_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Feb 2018 08:50:54 +0000 (11:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2018 19:19:12 +0000 (14:19 -0500)
These pernet_operations register and unregister
net::ipv4.iptable_filter table. Since there are
no packets in-flight at the time of exit method
is working, iptables rules should not be touched.
Also, pernet_operations should not send ipv4
packets each other. So, it's safe to mark them
async.

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

index 9ac92ea7b93c2798d6220f66995e354217cc2a60..c1c136a939111b0095ff9d88082a590af964ed7b 100644 (file)
@@ -87,6 +87,7 @@ static void __net_exit iptable_filter_net_exit(struct net *net)
 static struct pernet_operations iptable_filter_net_ops = {
        .init = iptable_filter_net_init,
        .exit = iptable_filter_net_exit,
+       .async = true,
 };
 
 static int __init iptable_filter_init(void)