aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-19 11:50:54 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-19 14:19:12 -0500
commitda349fad8045cc44cd9b1752b0e2d943df62cabf (patch)
treeeaa4d70b40d123a430d6379e13a8af8734fb1766
parentnet: Convert ip_tables_net_ops, udplite6_net_ops and xt_net_ops (diff)
downloadlinux-dev-da349fad8045cc44cd9b1752b0e2d943df62cabf.tar.xz
linux-dev-da349fad8045cc44cd9b1752b0e2d943df62cabf.zip
net: Convert iptable_filter_net_ops
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>
-rw-r--r--net/ipv4/netfilter/iptable_filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/iptable_filter.c b/net/ipv4/netfilter/iptable_filter.c
index 9ac92ea7b93c..c1c136a93911 100644
--- a/net/ipv4/netfilter/iptable_filter.c
+++ b/net/ipv4/netfilter/iptable_filter.c
@@ -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)