Commit 47d63a01 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

net: Convert hashlimit_net_ops and recent_net_ops

These pernet_operations just create and destroy /proc entries.
Also, new /proc entries also may come after new nf rules
are added, but this is not possible, when net isn't alive.
So, they are safe to be marked as async.
Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c80afa02
...@@ -1345,6 +1345,7 @@ static struct pernet_operations hashlimit_net_ops = { ...@@ -1345,6 +1345,7 @@ static struct pernet_operations hashlimit_net_ops = {
.exit = hashlimit_net_exit, .exit = hashlimit_net_exit,
.id = &hashlimit_net_id, .id = &hashlimit_net_id,
.size = sizeof(struct hashlimit_net), .size = sizeof(struct hashlimit_net),
.async = true,
}; };
static int __init hashlimit_mt_init(void) static int __init hashlimit_mt_init(void)
......
...@@ -687,6 +687,7 @@ static struct pernet_operations recent_net_ops = { ...@@ -687,6 +687,7 @@ static struct pernet_operations recent_net_ops = {
.exit = recent_net_exit, .exit = recent_net_exit,
.id = &recent_net_id, .id = &recent_net_id,
.size = sizeof(struct recent_net), .size = sizeof(struct recent_net),
.async = true,
}; };
static struct xt_match recent_mt_reg[] __read_mostly = { static struct xt_match recent_mt_reg[] __read_mostly = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment