summaryrefslogtreecommitdiffstats
path: root/net/ipv6/netfilter/nf_log_ipv6.c
diff options
context:
space:
mode:
authorKirill Tkhai2018-03-05 12:30:50 +0100
committerDavid S. Miller2018-03-05 16:48:27 +0100
commit3822034569ac8ae39556e50fa165dc7d4276f452 (patch)
treee3ee52d557e329df61246784d13f7d1824129bcc /net/ipv6/netfilter/nf_log_ipv6.c
parentnet: Convert broute_net_ops, frame_filter_net_ops and frame_nat_net_ops (diff)
downloadkernel-qcow2-linux-3822034569ac8ae39556e50fa165dc7d4276f452.tar.gz
kernel-qcow2-linux-3822034569ac8ae39556e50fa165dc7d4276f452.tar.xz
kernel-qcow2-linux-3822034569ac8ae39556e50fa165dc7d4276f452.zip
net: Convert log pernet_operations
These pernet_operations use nf_log_set() and nf_log_unset() in their methods: nf_log_bridge_net_ops nf_log_arp_net_ops nf_log_ipv4_net_ops nf_log_ipv6_net_ops nf_log_netdev_net_ops Nobody can send such a packet to a net before it's became registered, nobody can send a packet after all netdevices are unregistered. So, these pernet_operations are able to be marked as async. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/netfilter/nf_log_ipv6.c')
-rw-r--r--net/ipv6/netfilter/nf_log_ipv6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/netfilter/nf_log_ipv6.c b/net/ipv6/netfilter/nf_log_ipv6.c
index b397a8fe88b9..0220e584589c 100644
--- a/net/ipv6/netfilter/nf_log_ipv6.c
+++ b/net/ipv6/netfilter/nf_log_ipv6.c
@@ -390,6 +390,7 @@ static void __net_exit nf_log_ipv6_net_exit(struct net *net)
static struct pernet_operations nf_log_ipv6_net_ops = {
.init = nf_log_ipv6_net_init,
.exit = nf_log_ipv6_net_exit,
+ .async = true,
};
static int __init nf_log_ipv6_init(void)