netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf-next 0/5] flowtable: consolidate xmit path
@ 2025-10-10 11:18 Pablo Neira Ayuso
  2025-10-10 11:18 ` [PATCH nf-next 1/5] netfilter: flowtable: move path discovery infrastructure to its own file Pablo Neira Ayuso
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Pablo Neira Ayuso @ 2025-10-10 11:18 UTC (permalink / raw)
  To: netfilter-devel

Hi,

This series aims to consolidate direct and neigh xmit paths, the
dst_check for stale routes as well as the neighbour lookup are still
performed to detect network topology updates.

Patch #1 move the path discovery code to its own file, as more new
         topologies can be offloaded in the future. This is a
         preparation patch.

Patch #2 consolidates the neigh and direct xmit path. This patch relaxes
         too a check for neigh xmit in both directions which is needed
	 by the existing basic xfrm offload.

Patch #3 inlines vlan encapsulation to the flowtable xmit path, no
         indirection to the vlan device is required.

Patch #4 also inlines pppoe encapsulation which skips passing the
         packet to userspace pppd for encapsulation.

Patch #5 remove hw_ifidx which was introduced to make the hardware
         offload happy.

I have picked up and rebase original patches for vlan and pppoe posted
on the mailing list by wenxu.

As for IPIP support (layer 3 tunnel), this would also allow to inline
encapsulation. This needs a mtu check before encapsulation to push back
the packet to classic path if fragmentation after encapsulation is
needed.  This is not included in this series.

This adds an extra lookup by the index for the device for the neigh xmit
case from flowtable datapath, I did not collect numbers on this yet.

This is patch nft_flowtable.sh selftests.

Pablo Neira Ayuso (5):
  netfilter: flowtable: move path discovery infrastructure to its own file
  netfilter: flowtable: consolidate xmit path
  netfilter: flowtable: inline vlan encapsulation in xmit path
  netfilter: flowtable: inline pppoe encapsulation in xmit path
  netfilter: flowtable: remove hw_ifidx

 include/net/netfilter/nf_flow_table.h |   8 +-
 net/netfilter/Makefile                |   1 +
 net/netfilter/nf_flow_table_core.c    |   2 +-
 net/netfilter/nf_flow_table_ip.c      | 149 +++++++++++----
 net/netfilter/nf_flow_table_offload.c |   2 +-
 net/netfilter/nf_flow_table_path.c    | 259 ++++++++++++++++++++++++++
 net/netfilter/nft_flow_offload.c      | 252 -------------------------
 7 files changed, 383 insertions(+), 290 deletions(-)
 create mode 100644 net/netfilter/nf_flow_table_path.c

-- 
2.30.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-10-27 23:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-10 11:18 [PATCH nf-next 0/5] flowtable: consolidate xmit path Pablo Neira Ayuso
2025-10-10 11:18 ` [PATCH nf-next 1/5] netfilter: flowtable: move path discovery infrastructure to its own file Pablo Neira Ayuso
2025-10-12 12:18   ` Florian Westphal
2025-10-10 11:18 ` [PATCH nf-next 2/5] netfilter: flowtable: consolidate xmit path Pablo Neira Ayuso
2025-10-12 12:26   ` Florian Westphal
2025-10-27 23:48     ` Pablo Neira Ayuso
2025-10-10 11:18 ` [PATCH nf-next 3/5] netfilter: flowtable: inline vlan encapsulation in " Pablo Neira Ayuso
2025-10-10 11:18 ` [PATCH nf-next 4/5] netfilter: flowtable: inline pppoe " Pablo Neira Ayuso
2025-10-10 11:18 ` [PATCH nf-next 5/5] netfilter: flowtable: remove hw_ifidx Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).