Skip to content

Netfilter updates for net-next

Pablo Neira Ayuso netdev netfilter-devel 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesApplied 11/11

Patches in v1 All 11 applied

#Subject and filesSizeRepliesApplied
1/11netfilter: nf_tables: replace unnecessary use of list_for_each_entry_continue()net/netfilter/nf_tables_api.c+2 -40 repliesApplied
2/11netfilter: ecache: move to separate structureinclude/net/netfilter/nf_conntrack.h net/netfilter/nf_conntrack_ecache.c+16 -110 repliesApplied
3/11netfilter: conntrack: split inner loop of list dumping to own functionnet/netfilter/nf_conntrack_netlink.c+43 -250 repliesApplied
4/11netfilter: cttimeout: inc/dec module refcount per object, not per use refcountnet/netfilter/nfnetlink_cttimeout.c+5 -90 repliesApplied
5/11netfilter: nf_log_syslog: Merge MAC header dumpersnet/netfilter/nf_log_syslog.c+25 -660 repliesApplied
6/11netfilter: nf_log_syslog: Don't ignore unknown protocolsnet/netfilter/nf_log_syslog.c+31 -00 repliesApplied
7/11netfilter: nf_log_syslog: Consolidate entry checksnet/netfilter/nf_log_syslog.c+10 -80 repliesApplied
8/11netfilter: bitwise: replace hard-coded size with `sizeof` expressionnet/netfilter/nft_bitwise.c+1 -10 repliesApplied
9/11netfilter: bitwise: improve error goto labelsnet/netfilter/nft_bitwise.c+6 -50 repliesApplied
10/11netfilter: nft_fib: reverse path filter for policy-based routing on iifnet/ipv4/netfilter/nft_fib_ipv4.c net/ipv6/netfilter/nft_fib_ipv6.c net/netfilter/nft_fib.c+12 -00 repliesApplied
11/11selftests: netfilter: add fib expression forward test casetools/testing/selftests/netfilter/nft_fib.sh+50 -00 repliesApplied

Reviews trailers per patch

3 of 11 patches have a Reviewed-by or Acked-by.

PatchFlorian Westphal
1/11R-b
2/11
3/11
4/11
5/11A-b
6/11
7/11
8/11
9/11
10/11A-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 00/11] Netfilter updates for net-next

Hi,

The following patchset contains Netfilter updates for net-next:

1) Replace unnecessary list_for_each_entry_continue() in nf_tables, from Jakob Koschel.

2) Add struct nf_conntrack_net_ecache to conntrack event cache and use it, from Florian Westphal.

3) Refactor ctnetlink_dump_list(), also from Florian.

4) Bump module reference counter on cttimeout object addition/removal, from Florian.

5) Consolidate nf_log MAC printer, from Phil Sutter.

6) Add basic logging support for unknown ethertype, from Phil Sutter.

7) Consolidate check for sysctl nf_log_all_netns toggle, also from Phil.

8) Replace hardcode value in nft_bitwise, from Jeremy Sowden.

9) Rename BASIC-like goto tags in nft_bitwise to more meaningful names, also from Jeremy.

10) nft_fib support for reverse path filtering with policy-based routing on iif. Extend selftests to cover for this new usecase, from Florian.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git

Thanks.

----------------------------------------------------------------

The following changes since commit 2975dbdc3989cd66a4cb5a7c5510de2de8ee4d14:

Merge tag 'net-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (2022-03-31 11:23:31 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git HEAD

for you to fetch changes up to 0c7b27616fbd64b3b86c59ad5441f82a1a0c4176:

selftests: netfilter: add fib expression forward test case (2022-04-11 12:10:09 +0200)

----------------------------------------------------------------
Florian Westphal (4):
netfilter: ecache: move to separate structure
netfilter: conntrack: split inner loop of list dumping to own function
netfilter: cttimeout: inc/dec module refcount per object, not per use refcount
selftests: netfilter: add fib expression forward test case

Jakob Koschel (1):
netfilter: nf_tables: replace unnecessary use of list_for_each_entry_continue()

Jeremy Sowden (2):
netfilter: bitwise: replace hard-coded size with sizeof expression
netfilter: bitwise: improve error goto labels

Pablo Neira Ayuso (1):
netfilter: nft_fib: reverse path filter for policy-based routing on iif

Phil Sutter (3):
netfilter: nf_log_syslog: Merge MAC header dumpers
netfilter: nf_log_syslog: Don't ignore unknown protocols
netfilter: nf_log_syslog: Consolidate entry checks

 include/net/netfilter/nf_conntrack.h         |   8 +-
 net/ipv4/netfilter/nft_fib_ipv4.c            |   4 +
 net/ipv6/netfilter/nft_fib_ipv6.c            |   4 +
 net/netfilter/nf_conntrack_ecache.c          |  19 ++--
 net/netfilter/nf_conntrack_netlink.c         |  68 +++++++++-----
 net/netfilter/nf_log_syslog.c                | 136 +++++++++++++--------------
 net/netfilter/nf_tables_api.c                |   6 +-
 net/netfilter/nfnetlink_cttimeout.c          |  14 +--
 net/netfilter/nft_bitwise.c                  |  13 +--
 net/netfilter/nft_fib.c                      |   4 +
 tools/testing/selftests/netfilter/nft_fib.sh |  50 ++++++++++
 11 files changed, 199 insertions(+), 127 deletions(-)