From: pablo@netfilter.org
To: netfilter-devel@vger.kernel.org
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Subject: [PATCH] [RFC] nf_tables: dormant tables
Date: Tue, 13 Nov 2012 17:33:18 +0100 [thread overview]
Message-ID: <1352824399-3641-1-git-send-email-pablo@netfilter.org> (raw)
From: Pablo Neira Ayuso <pablo@netfilter.org>
Hi,
The following patch adds the concept of dormant tables. Basically,
it's a flag that you can set to get a table (and all they chains)
inactive. Dormant tables have no effect and see no traffic.
This operation can be also used to support atomic replacement
at chain level, that can be done following these steps:
1) set table as dormant
2) flush the rule-set in all their chains
3) add the new rule-set
4) set table as active
The main target of this patch is to provide a way to load the
rule-set in a chain at once, avoiding possible some inconsistent
state at the chain level.
Coments welcome.
Pablo Neira Ayuso (1):
netfilter: nf_tables: add support for dormant tables
include/linux/netfilter/nf_tables.h | 10 ++++
include/net/netfilter/nf_tables.h | 2 +
net/netfilter/nf_tables_api.c | 90 +++++++++++++++++++++++++++++++++--
3 files changed, 98 insertions(+), 4 deletions(-)
--
1.7.10.4
next reply other threads:[~2012-11-13 16:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 16:33 pablo [this message]
2012-11-13 16:33 ` [PATCH] netfilter: nf_tables: add support for dormant tables pablo
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=1352824399-3641-1-git-send-email-pablo@netfilter.org \
--to=pablo@netfilter.org \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter-devel@vger.kernel.org \
--cc=tomasz.bursztyka@linux.intel.com \
/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;
as well as URLs for NNTP newsgroup(s).