From: Patrick McHardy <kaber@trash.net>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH 0/4] netfilter: nf_tables: dynamic set updates
Date: Sun, 5 Apr 2015 14:41:04 +0200 [thread overview]
Message-ID: <1428237668-31789-1-git-send-email-kaber@trash.net> (raw)
The following patches contain a small bug fix for set selection with
timeouts, as well as support for dynamic set updates.
A new "dynset" expression type is added to dynamically add or update
set elements. The name is not my first choice, however due to clashes
with the regular set attributes simply "set" wasn't possible.
Userspace exposes this in a nicer fashion.
As preparation, set size accounting is changed to use an atomic_t
for the number of elements to avoid races, additionally set bindings
are changed to not assume every binding is related to a lookup or map
operation.
Please apply, thanks!
Patrick McHardy (4):
netfilter: nf_tables: fix set selection when timeouts are requested
netfilter: nf_tables: prepare set element accounting for async updates
netfilter: nf_tables: support different set binding types
netfilter: nf_tables: add support for dynamic set updates
include/net/netfilter/nf_tables.h | 23 +++-
include/net/netfilter/nf_tables_core.h | 3 +
include/uapi/linux/netfilter/nf_tables.h | 27 ++++
net/netfilter/Makefile | 2 +-
net/netfilter/nf_tables_api.c | 44 ++++---
net/netfilter/nf_tables_core.c | 7 +
net/netfilter/nft_dynset.c | 218 +++++++++++++++++++++++++++++++
net/netfilter/nft_hash.c | 40 +++++-
net/netfilter/nft_lookup.c | 2 +
9 files changed, 345 insertions(+), 21 deletions(-)
create mode 100644 net/netfilter/nft_dynset.c
--
2.1.0
next reply other threads:[~2015-04-05 12:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-05 12:41 Patrick McHardy [this message]
2015-04-05 12:41 ` [PATCH 1/4] netfilter: nf_tables: fix set selection when timeouts are requested Patrick McHardy
2015-04-05 12:41 ` [PATCH 2/4] netfilter: nf_tables: prepare set element accounting for async updates Patrick McHardy
2015-04-05 12:41 ` [PATCH 3/4] netfilter: nf_tables: support different set binding types Patrick McHardy
2015-04-05 12:41 ` [PATCH 4/4] netfilter: nf_tables: add support for dynamic set updates Patrick McHardy
2015-04-08 16:57 ` [PATCH 0/4] netfilter: nf_tables: " Pablo Neira Ayuso
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=1428237668-31789-1-git-send-email-kaber@trash.net \
--to=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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;
as well as URLs for NNTP newsgroup(s).