diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-05 06:30:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-05 10:48:27 -0500 |
commit | 3822034569ac8ae39556e50fa165dc7d4276f452 (patch) | |
tree | e3ee52d557e329df61246784d13f7d1824129bcc /net/bridge | |
parent | ec012f3b85159102662264bb5c3436c849d2b1b9 (diff) |
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/bridge')
-rw-r--r-- | net/bridge/netfilter/nf_log_bridge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/netfilter/nf_log_bridge.c b/net/bridge/netfilter/nf_log_bridge.c index bd2b3c78f59b..91bfc2ac055a 100644 --- a/net/bridge/netfilter/nf_log_bridge.c +++ b/net/bridge/netfilter/nf_log_bridge.c | |||
@@ -48,6 +48,7 @@ static void __net_exit nf_log_bridge_net_exit(struct net *net) | |||
48 | static struct pernet_operations nf_log_bridge_net_ops = { | 48 | static struct pernet_operations nf_log_bridge_net_ops = { |
49 | .init = nf_log_bridge_net_init, | 49 | .init = nf_log_bridge_net_init, |
50 | .exit = nf_log_bridge_net_exit, | 50 | .exit = nf_log_bridge_net_exit, |
51 | .async = true, | ||
51 | }; | 52 | }; |
52 | 53 | ||
53 | static int __init nf_log_bridge_init(void) | 54 | static int __init nf_log_bridge_init(void) |