aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-03-07 12:40:45 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-08 12:36:45 -0500
commit06a8a67b5dac661a0f0b865926ceab2e62d512cd (patch)
treeec94122dfee9f38ad15d7cc98135bbb44e77c2db /net/ipv4
parentnet: Convert iptable_mangle_net_ops (diff)
downloadlinux-dev-06a8a67b5dac661a0f0b865926ceab2e62d512cd.tar.xz
linux-dev-06a8a67b5dac661a0f0b865926ceab2e62d512cd.zip
net: Convert iptable_nat_net_ops
These pernet_operations unregister net::ipv4::nat_table 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>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/iptable_nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/iptable_nat.c b/net/ipv4/netfilter/iptable_nat.c
index 0f7255cc65ee..b771af74be79 100644
--- a/net/ipv4/netfilter/iptable_nat.c
+++ b/net/ipv4/netfilter/iptable_nat.c
@@ -129,6 +129,7 @@ static void __net_exit iptable_nat_net_exit(struct net *net)
static struct pernet_operations iptable_nat_net_ops = {
.exit = iptable_nat_net_exit,
+ .async = true,
};
static int __init iptable_nat_init(void)