From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de,
stephen@networkplumber.org, davem@davemloft.net,
dmitry.tarnyagin@lockless.no, socketcan@hartkopp.net,
mkl@pengutronix.de, gerrit@erg.abdn.ac.uk,
yoshfuji@linux-ipv6.org, johannes.berg@intel.com,
garsilva@embeddedor.com, ross.lagerwall@citrix.com,
aconole@bytheb.org, netdev@vger.kernel.org, ktkhai@virtuozzo.com
Subject: [PATCH net-next 01/12] net: Convert broute_net_ops, frame_filter_net_ops and frame_nat_net_ops
Date: Mon, 05 Mar 2018 14:30:41 +0300 [thread overview]
Message-ID: <152024944118.3454.17375488296240673358.stgit@localhost.localdomain> (raw)
In-Reply-To: <152024910817.3454.18426950407771593279.stgit@localhost.localdomain>
These pernet_operations use ebt_register_table() and
ebt_unregister_table() to act on the tables, which
are used as argument in ebt_do_table(), called from
ebtables hooks.
Since there are no net-related bridge packets in-flight,
when the init and exit methods are called, these
pernet_operations are safe to be executed in parallel
with any other.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
net/bridge/netfilter/ebtable_broute.c | 1 +
net/bridge/netfilter/ebtable_filter.c | 1 +
net/bridge/netfilter/ebtable_nat.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/net/bridge/netfilter/ebtable_broute.c b/net/bridge/netfilter/ebtable_broute.c
index 276b60262981..f070b5e5b9dd 100644
--- a/net/bridge/netfilter/ebtable_broute.c
+++ b/net/bridge/netfilter/ebtable_broute.c
@@ -77,6 +77,7 @@ static void __net_exit broute_net_exit(struct net *net)
static struct pernet_operations broute_net_ops = {
.init = broute_net_init,
.exit = broute_net_exit,
+ .async = true,
};
static int __init ebtable_broute_init(void)
diff --git a/net/bridge/netfilter/ebtable_filter.c b/net/bridge/netfilter/ebtable_filter.c
index c41da5fac84f..4151afc8efcc 100644
--- a/net/bridge/netfilter/ebtable_filter.c
+++ b/net/bridge/netfilter/ebtable_filter.c
@@ -105,6 +105,7 @@ static void __net_exit frame_filter_net_exit(struct net *net)
static struct pernet_operations frame_filter_net_ops = {
.init = frame_filter_net_init,
.exit = frame_filter_net_exit,
+ .async = true,
};
static int __init ebtable_filter_init(void)
diff --git a/net/bridge/netfilter/ebtable_nat.c b/net/bridge/netfilter/ebtable_nat.c
index 08df7406ecb3..b8da2dfe2ec5 100644
--- a/net/bridge/netfilter/ebtable_nat.c
+++ b/net/bridge/netfilter/ebtable_nat.c
@@ -105,6 +105,7 @@ static void __net_exit frame_nat_net_exit(struct net *net)
static struct pernet_operations frame_nat_net_ops = {
.init = frame_nat_net_init,
.exit = frame_nat_net_exit,
+ .async = true,
};
static int __init ebtable_nat_init(void)
next prev parent reply other threads:[~2018-03-05 11:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-05 11:30 [PATCH net-next 00/12] Converting pernet_operations (part #4) Kirill Tkhai
2018-03-05 11:30 ` Kirill Tkhai [this message]
2018-03-05 11:30 ` [PATCH net-next 02/12] net: Convert log pernet_operations Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 03/12] net: Convert arp_tables_net_ops and ip6_tables_net_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 04/12] net: Convert caif_net_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 05/12] net: Convert cangw_pernet_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 06/12] net: Convert dccp_v4_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 07/12] net: Convert dccp_v6_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 08/12] net: Convert fou_net_ops Kirill Tkhai
2018-03-05 11:31 ` [PATCH net-next 09/12] net: Convert ip_set_net_ops Kirill Tkhai
2018-03-05 11:32 ` [PATCH net-next 10/12] net: Convert nf_conntrack_net_ops Kirill Tkhai
2018-03-05 11:32 ` [PATCH net-next 11/12] net: Convert ctnetlink_net_ops Kirill Tkhai
2018-03-05 11:32 ` [PATCH net-next 12/12] net: Convert proto_gre_net_ops Kirill Tkhai
2018-03-05 15:53 ` [PATCH net-next 00/12] Converting pernet_operations (part #4) David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=152024944118.3454.17375488296240673358.stgit@localhost.localdomain \
--to=ktkhai@virtuozzo.com \
--cc=aconole@bytheb.org \
--cc=davem@davemloft.net \
--cc=dmitry.tarnyagin@lockless.no \
--cc=fw@strlen.de \
--cc=garsilva@embeddedor.com \
--cc=gerrit@erg.abdn.ac.uk \
--cc=johannes.berg@intel.com \
--cc=kadlec@blackhole.kfki.hu \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=ross.lagerwall@citrix.com \
--cc=socketcan@hartkopp.net \
--cc=stephen@networkplumber.org \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox