Merge tag 'nf-next-26-11-16' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next

Pablo Neira Ayuso says:

====================
Netfilter updates for net-next

The following patchset contains Netfilter updates for net-next, mostly
including flowtable fixes and improvements:

1) Do not offload flows to hardware from the packet path if they are
   already being torn down.

2) Fetch hardware stats when a flow is deleted, so the last stats sync
   with the conntrack entry is no longer missed. Update the mtk_ppe and
   airoha drivers to use this. From Lorenzo Bianconi and me.

3) Fix xt_time monthday computation for dates from 2040 on by using
   time64_to_tm() instead of the days_since_epoch[] table. This also
   shrinks the xt_time object by about 23%. From Fernando F. Mancera.

4) Do not offload multicast flows from nft_flow_offload, from Koral Ilgun.

5) Make the nf_hooks_lwtunnel sysctl read-only in non-init netns so
   unprivileged users cannot toggle the global static branch.
   From Pablo Neira Ayuso.

6) Purge the remaining flowtable entries directly when the flowtable
   is destroyed instead of going through the hardware offload
   workqueue, which may fail to allocate work.

7) Remove a no-op loop initializer in the nf_queue selftest to silence
   a clang -Wunused-value warning. From Sasha Levin.

8) Do not scrub the skb as crossing netns in the IPIP flowtable tx
   path, so the skb mark is preserved.

9) Do not let the DEV_PATH_TUN entry set h_source from the tunnel
   device's dev_addr. Before this patch, fast-path frames went out with
   part of the tunnel's local IP address as the Ethernet source MAC.
   This broke offloaded flows on DS-Lite over PPPoE. From Marek
   Majkowski.

10) Clear IPS_OFFLOAD_BIT only once, as part of the one-time teardown
    transition. Before this patch, a repeated teardown of an expired
    hardware flow could clear the bit owned by a replacement flow for
    the same conntrack entry. From João Silva.

11) Call skb_ensure_writable() in nfnetlink_queue before writing
    NFQA_L2HDR over the mac header. Before this patch, the write could
    corrupt cloned frames that bridge flooding sends to other ports.
    From Tamaki Yanagawa.

12) Add a UDP flowtable offload selftest for IPv4 and IPv6, with and
    without masquerade. From Jiri Peska.

netfilter pull request 26-11-16

* tag 'nf-next-26-11-16' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next:
  selftests: netfilter: add UDP flowtable offload test
  netfilter: nfnetlink_queue: make skb writable before writing NFQA_L2HDR
  netfilter: flowtable: do not clear the offload bit twice
  netfilter: flowtable: tunnel device poisons h_source of fast-path frames
  netfilter: flowtable: do not scrub as crossing netns
  selftests: netfilter: nf_queue: drop the no-op loop initializer
  netfilter: flowtable: purge entries immediately when destroying the flowtable
  netfilter: nft_flow_offload: do not offload multicast
  netfilter: xt_time: fix monthday computation for dates past 2039
  net: airoha: update stats on flow deletion
  net: ethernet: mtk_ppe: update stats on flow deletion
  netfilter: flowtable: retrieve stats on flow deletion
  netfilter: flowtable: do not hw offload flows in teardown state
====================

Link: https://patch.msgid.link/20261116001612.2806263-1-pablo@netfilter.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>