summaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_recent.c
diff options
context:
space:
mode:
authorKirill Tkhai2018-02-26 13:59:28 +0100
committerDavid S. Miller2018-02-27 17:01:35 +0100
commit47d63a01797be8de142beeb0090704501701eafa (patch)
treeadaf0ad67993d17eb95130a81bce3a07b742052b /net/netfilter/xt_recent.c
parentnet: Convert /proc creating and destroying pernet_operations (diff)
downloadkernel-qcow2-linux-47d63a01797be8de142beeb0090704501701eafa.tar.gz
kernel-qcow2-linux-47d63a01797be8de142beeb0090704501701eafa.tar.xz
kernel-qcow2-linux-47d63a01797be8de142beeb0090704501701eafa.zip
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: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/xt_recent.c')
-rw-r--r--net/netfilter/xt_recent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c
index 6d232d18faff..19efdb757944 100644
--- a/net/netfilter/xt_recent.c
+++ b/net/netfilter/xt_recent.c
@@ -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 = {