netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] netfilter: nf_tables: dynamic set updates
@ 2015-04-05 12:41 Patrick McHardy
  2015-04-05 12:41 ` [PATCH 1/4] netfilter: nf_tables: fix set selection when timeouts are requested Patrick McHardy
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Patrick McHardy @ 2015-04-05 12:41 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-08 16:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-05 12:41 [PATCH 0/4] netfilter: nf_tables: dynamic set updates Patrick McHardy
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

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).