Skip to content

new transaction infrastructure for nf_tables

Pablo Neira Ayuso netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7netfilter: nf_tables: deconstify table and chain in context structureinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+32 -322 replies
2/7netfilter: nf_tables: generalise transaction infrastructureinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+75 -541 reply
3/7netfilter: nf_tables: relocate commit and abort routines in the source filenet/netfilter/nf_tables_api.c+82 -820 replies
4/7netfilter: nf_tables: better encapsulation for the rule transaction codenet/netfilter/nf_tables_api.c+69 -331 reply
5/7netfilter: nf_tables: move set handling to the transaction infrastructureinclude/net/netfilter/nf_tables.h include/uapi/linux/netfilter/nf_tables.h net/netfilter/nf_tables_api.c +1 more+141 -171 reply
6/7netfilter: nf_tables: move chain handling to the transaction infrastructureinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+164 -371 reply
7/7netfilter: nf_tables: move table handling to the transaction infrastructureinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+156 -341 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] new transaction infrastructure for nf_tables

Hi,

This patchset contains updates to the transaction infrastructure and a new batch API to userspace to update tables, chains and sets. Basically, it generalises the existing rule batching so we can also include sets, chains and tables in one single batch. This helps to speed up updates since we save many netlink messages between kernel and userspace and this also improves several batch loading error cases that resulted in inconsistent configurations.

Still, this patchset doesn't address the abortion of chain policy/counter updates and new set elements addition/removals. Basically, this means that we don't have atomic set element updates yet, but that wasn't possible with the former API either.

Pablo Neira Ayuso (7):
netfilter: nf_tables: deconstify table and chain in context structure
netfilter: nf_tables: generalise transaction infrastructure
netfilter: nf_tables: relocate commit and abort routines in the source file
netfilter: nf_tables: better encapsulation for the rule transaction code
netfilter: nf_tables: move set handling to the transaction infrastructure
netfilter: nf_tables: move chain handling to the transaction infrastructure
netfilter: nf_tables: move table handling to the transaction infrastructure

 include/net/netfilter/nf_tables.h        |   31 +-
 include/uapi/linux/netfilter/nf_tables.h |    6 +
 net/netfilter/nf_tables_api.c            |  830 ++++++++++++++++++++++--------
 net/netfilter/nft_lookup.c               |   15 +-
 4 files changed, 656 insertions(+), 226 deletions(-)
Signature · 1 line
1.7.10.4