Netfilter updates for next-net (part 2)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | netfilter: xt_hashlimit: add rate match modeinclude/ include/ net/ | +285 | 0 replies | |
| 2/12 | netfilter: nf_tables: add select_ops for stateful objectsinclude/ net/ net/ +3 more | +90 | 0 replies | |
| 3/12 | netfilter: nft_limit: replace pkt_bytes with bytesnet/ | +13 | 0 replies | |
| 4/12 | netfilter: nft_limit: add stateful object typeinclude/ net/ | +123 | 0 replies | |
| 5/12 | netfilter: remove unused hooknum arg from packet functionsinclude/ net/ net/ +7 more | +4 | 0 replies | |
| 6/12 | net: Replace NF_CT_ASSERT() with WARN_ON().include/ net/ net/ +12 more | +45 | 0 replies | |
| 7/12 | net: Remove CONFIG_NETFILTER_DEBUG and _ASSERT() macros.arch/ arch/ include/ +4 more | +14 | 0 replies | |
| 8/12 | netfilter: nf_tables: add nf_tables_updchain()net/ | +92 | 0 replies | |
| 9/12 | netfilter: nf_tables: add nf_tables_addchain()net/ | +106 | 0 replies | |
| 10/12 | netlink: add NLM_F_NONREC flag for deletion requestsinclude/ | +3 | 0 replies | |
| 11/12 | netfilter: nf_tables: use NLM_F_NONREC for deletion requestsnet/ | +7 | 0 replies | |
| 12/12 | netfilter: nf_tables: support for recursive chain deletionnet/ | +23 | 0 replies |
Reviews trailers per patch
1 of 12 patches has a Reviewed-by or Acked-by.
| Patch | Josh Hunt |
|---|---|
| 1/12 | R-b |
| 2/12 | |
| 3/12 | |
| 4/12 | |
| 5/12 | |
| 6/12 | |
| 7/12 | |
| 8/12 | |
| 9/12 | |
| 10/12 | |
| 11/12 | |
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/12] Netfilter updates for next-net (part 2)
Hi David,
The following patchset contains Netfilter updates for net-next. This patchset includes updates for nf_tables, removal of CONFIG_NETFILTER_DEBUG and a new mode for xt_hashlimit. More specifically, they:
1) Add new rate match mode for hashlimit, this introduces a new revision for this match. The idea is to stop matching packets until ratelimit criteria stands true. Patch from Vishwanath Pai.
2) Add ->select_ops indirection to nf_tables named objects, so we can choose between different flavours of the same object type, patch from Pablo M. Bermudo.
3) Shorter function names in nft_limit, basically:
s/nft_limit_pkt_bytes/nft_limit_bytes, also from Pablo M. Bermudo.
4) Add new stateful limit named object type, this allows us to create limit policies that you can identify via name, also from Pablo.
5) Remove unused hooknum parameter in conntrack ->packet indirection. From Florian Westphal.
6) Patches to remove CONFIG_NETFILTER_DEBUG and macros such as IP_NF_ASSERT and IP_NF_ASSERT. From Varsha Rao.
7) Add nf_tables_updchain() helper function and use it from nf_tables_newchain() to make it more maintainable. Similarly, add nf_tables_addchain() and use it too.
8) Add new netlink NLM_F_NONREC flag, this flag should only be used for deletion requests, specifically, to support non-recursive deletion. Based on what we discussed during NFWS'17 in Faro.
9) Use NLM_F_NONREC from table and sets in nf_tables.
10) Support for recursive chain deletion. Table and set deletion commands come with an implicit content flush on deletion, while chains do not. This patch addresses this inconsistency by adding the code to perform recursive chain deletions. This also comes with the bits to deal with the new NLM_F_NONREC netlink flag.
You can pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git
Thanks a lot!
----------------------------------------------------------------
The following changes since commit 3cf2e08f5ace79d57c8edba06deb59b25bd1dd33:
Merge branch 'nfp-refactor-app-init-and-minor-flower-fixes' (2017-09-03 21:22:05 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git HEAD
for you to fetch changes up to 9dee1474121550b20542321f9e0579801c6b587c:
netfilter: nf_tables: support for recursive chain deletion (2017-09-04 17:34:55 +0200)
----------------------------------------------------------------
Florian Westphal (1):
netfilter: remove unused hooknum arg from packet functions
Pablo M. Bermudo Garay (3):
netfilter: nf_tables: add select_ops for stateful objects
netfilter: nft_limit: replace pkt_bytes with bytes
netfilter: nft_limit: add stateful object type
Pablo Neira Ayuso (5):
netfilter: nf_tables: add nf_tables_updchain()
netfilter: nf_tables: add nf_tables_addchain()
netlink: add NLM_F_NONREC flag for deletion requests
netfilter: nf_tables: use NLM_F_NONREC for deletion requests
netfilter: nf_tables: support for recursive chain deletion
Varsha Rao (2):
net: Replace NF_CT_ASSERT() with WARN_ON().
net: Remove CONFIG_NETFILTER_DEBUG and _ASSERT() macros.
Vishwanath Pai (1):
netfilter: xt_hashlimit: add rate match mode
arch/parisc/configs/c3000_defconfig | 1 - arch/sh/configs/se7751_defconfig | 1 - include/linux/netfilter/xt_hashlimit.h | 3 +- include/net/netfilter/nf_conntrack.h | 8 +- include/net/netfilter/nf_conntrack_l4proto.h | 1 - include/net/netfilter/nf_tables.h | 35 ++- include/uapi/linux/netfilter/nf_tables.h | 3 +- include/uapi/linux/netfilter/xt_hashlimit.h | 36 ++- include/uapi/linux/netlink.h | 3 + net/Kconfig | 7 - net/bridge/netfilter/ebtables.c | 20 +- net/ipv4/netfilter/ip_tables.c | 12 +- net/ipv4/netfilter/nf_conntrack_proto_icmp.c | 3 +- net/ipv4/netfilter/nf_nat_l3proto_ipv4.c | 6 +- net/ipv4/netfilter/nf_nat_masquerade_ipv4.c | 8 +- net/ipv6/netfilter/ip6_tables.c | 12 +- net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c | 8 +- net/ipv6/netfilter/nf_nat_l3proto_ipv6.c | 6 +- net/ipv6/netfilter/nf_nat_masquerade_ipv6.c | 4 +- net/netfilter/nf_conntrack_core.c | 13 +- net/netfilter/nf_conntrack_expect.c | 4 +- net/netfilter/nf_conntrack_extend.c | 2 +- net/netfilter/nf_conntrack_proto_dccp.c | 2 +- net/netfilter/nf_conntrack_proto_generic.c | 1 - net/netfilter/nf_conntrack_proto_gre.c | 1 - net/netfilter/nf_conntrack_proto_sctp.c | 1 - net/netfilter/nf_conntrack_proto_tcp.c | 1 - net/netfilter/nf_conntrack_proto_udp.c | 1 - net/netfilter/nf_conntrack_standalone.c | 6 +- net/netfilter/nf_nat_core.c | 4 +- net/netfilter/nf_nat_redirect.c | 6 +- net/netfilter/nf_tables_api.c | 403 ++++++++++++++----------- net/netfilter/nft_counter.c | 20 +- net/netfilter/nft_ct.c | 18 +- net/netfilter/nft_limit.c | 148 ++++++++- net/netfilter/nft_objref.c | 7 +- net/netfilter/nft_quota.c | 20 +- net/netfilter/xt_NETMAP.c | 8 +- net/netfilter/xt_hashlimit.c | 277 +++++++++++++++-- net/netfilter/xt_nat.c | 20 +- 40 files changed, 788 insertions(+), 352 deletions(-)