]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: Convert iptable_raw_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Wed, 7 Mar 2018 09:40:58 +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_raw 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_raw.c

index 960625aabf0454b3814f5094faca1468e0d37059..963753e508422e75ce8ee4e9cdd0be6a17879a61 100644 (file)
@@ -76,6 +76,7 @@ static void __net_exit iptable_raw_net_exit(struct net *net)
 
 static struct pernet_operations iptable_raw_net_ops = {
        .exit = iptable_raw_net_exit,
+       .async = true,
 };
 
 static int __init iptable_raw_init(void)