]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net: Convert hashlimit_net_ops and recent_net_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 26 Feb 2018 12:59:28 +0000 (15:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 16:01:35 +0000 (11:01 -0500)
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: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_hashlimit.c
net/netfilter/xt_recent.c

index 66f5aca62a087ee816b6c18e0c385af535cf4ae7..db2fe0911740482ba6b658e553600e2c5d759b00 100644 (file)
@@ -1345,6 +1345,7 @@ static struct pernet_operations hashlimit_net_ops = {
        .exit   = hashlimit_net_exit,
        .id     = &hashlimit_net_id,
        .size   = sizeof(struct hashlimit_net),
+       .async  = true,
 };
 
 static int __init hashlimit_mt_init(void)
index 6d232d18faff72ec8c26bd82dc7685fec52c5c6a..19efdb7579449bbe48f5d68e2b051e91fa14402f 100644 (file)
@@ -687,6 +687,7 @@ static struct pernet_operations recent_net_ops = {
        .exit   = recent_net_exit,
        .id     = &recent_net_id,
        .size   = sizeof(struct recent_net),
+       .async  = true,
 };
 
 static struct xt_match recent_mt_reg[] __read_mostly = {