Netfilter updates for net-next
Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 8 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | netfilter: ecache: remove one indent levelinclude/ net/ net/ | +36 | 0 replies | Applied |
| 2/8 | netfilter: ecache: remove another indent levelnet/ | +18 | 0 replies | Applied |
| 3/8 | netfilter: ecache: add common helper for nf_conntrack_eventmask_reportnet/ | +56 | 0 replies | Applied |
| 4/8 | netfilter: ecache: prepare for event notifier mergeinclude/ net/ net/ | +17 | 0 replies | Applied |
| 5/8 | netfilter: ecache: remove nf_exp_event_notifier structureinclude/ include/ net/ +1 more | +13 | 0 replies | Applied |
| 6/8 | netfilter: ctnetlink: missing counters and timestamp in nfnetlink_{log,queue}net/ | +6 | 0 replies | Applied |
| 7/8 | netfilter: x_tables: handle xt_register_template() returning an error valuenet/ | +2 | 0 replies | Applied |
| 8/8 | netfilter: add netfilter hooks to SRv6 data planeDocumentation/ include/ include/ +6 more | +241 | 0 replies | Applied |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Florian Westphal |
|---|---|
| 1/8 | |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | R-b |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/8] Netfilter updates for net-next
Hi,
The following patchset contains Netfilter updates for net-next:
1) Clean up and consolidate ct ecache infrastructure by merging ct and expect notifiers, from Florian Westphal.
2) Missing counters and timestamp in nfnetlink_queue and _log conntrack information.
3) Missing error check for xt_register_template() in iptables mangle, as a incremental fix for the previous pull request, also from Florian Westphal.
4) Add netfilter hooks for the SRv6 lightweigh tunnel driver, from Ryoga Sato. The hooks are enabled via nf_hooks_lwtunnel sysctl to make sure existing netfilter rulesets do not break. There is a static key to disable the hooks by default.
The pktgen_bench_xmit_mode_netif_receive.sh shows no noticeable impact in the seg6_input path for non-netfilter users: similar numbers with and without this patch.
This is a sample of the perf report output:
11.67% kpktgend_0 [ipv6] [k] ipv6_get_saddr_eval
7.89% kpktgend_0 [ipv6] [k] __ipv6_addr_label
7.52% kpktgend_0 [ipv6] [k] __ipv6_dev_get_saddr
6.63% kpktgend_0 [kernel.vmlinux] [k] asm_exc_nmi
4.74% kpktgend_0 [ipv6] [k] fib6_node_lookup_1
3.48% kpktgend_0 [kernel.vmlinux] [k] pskb_expand_head
3.33% kpktgend_0 [ipv6] [k] ip6_rcv_core.isra.29
3.33% kpktgend_0 [ipv6] [k] seg6_do_srh_encap
2.53% kpktgend_0 [ipv6] [k] ipv6_dev_get_saddr
2.45% kpktgend_0 [ipv6] [k] fib6_table_lookup
2.24% kpktgend_0 [kernel.vmlinux] [k] ___cache_free
2.16% kpktgend_0 [ipv6] [k] ip6_pol_route
2.11% kpktgend_0 [kernel.vmlinux] [k] __ipv6_addr_typePlease, pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git
Thanks.
----------------------------------------------------------------
The following changes since commit 87e5ef4b19cec86c861e3ebab3a5d840ecc2f4a4:
mctp: Remove the repeated declaration (2021-08-25 11:23:14 +0100)
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 7a3f5b0de3647c854e34269c3332d7a1e902901a:
netfilter: add netfilter hooks to SRv6 data plane (2021-08-30 01:51:36 +0200)
----------------------------------------------------------------
Florian Westphal (5):
netfilter: ecache: remove one indent level
netfilter: ecache: remove another indent level
netfilter: ecache: add common helper for nf_conntrack_eventmask_report
netfilter: ecache: prepare for event notifier merge
netfilter: ecache: remove nf_exp_event_notifier structure
Lukas Bulwahn (1):
netfilter: x_tables: handle xt_register_template() returning an error value
Pablo Neira Ayuso (1):
netfilter: ctnetlink: missing counters and timestamp in nfnetlink_{log,queue}Ryoga Saito (1):
netfilter: add netfilter hooks to SRv6 data plane
Documentation/networking/nf_conntrack-sysctl.rst | 7 + include/net/lwtunnel.h | 3 + include/net/netfilter/nf_conntrack_ecache.h | 32 ++-- include/net/netfilter/nf_hooks_lwtunnel.h | 7 + include/net/netns/conntrack.h | 1 - net/core/lwtunnel.c | 3 + net/ipv4/netfilter/iptable_mangle.c | 2 + net/ipv6/seg6_iptunnel.c | 75 +++++++- net/ipv6/seg6_local.c | 111 ++++++++---- net/netfilter/Makefile | 3 + net/netfilter/nf_conntrack_ecache.c | 211 +++++++++-------------- net/netfilter/nf_conntrack_netlink.c | 56 ++---- net/netfilter/nf_conntrack_standalone.c | 15 ++ net/netfilter/nf_hooks_lwtunnel.c | 53 ++++++ 14 files changed, 345 insertions(+), 234 deletions(-) create mode 100644 include/net/netfilter/nf_hooks_lwtunnel.h create mode 100644 net/netfilter/nf_hooks_lwtunnel.c