]> Gentwo Git Trees - linux/.git/commit
netfilter: flowtable: consolidate xmit path
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 10 Oct 2025 10:32:35 +0000 (12:32 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 27 Nov 2025 23:59:56 +0000 (23:59 +0000)
commitb5964aac51e0c286a50e68225e0dfcf11fb554cb
tree3df4ec836bd6fe4260c880ebf26b8e3c8e51aa3b
parent93d7a7ed07342f5e3da2d250cfd67f899d0b5318
netfilter: flowtable: consolidate xmit path

Use dev_queue_xmit() for the XMIT_NEIGH case. Store the interface index
of the real device behind the vlan/pppoe device, this introduces  an
extra lookup for the real device in the xmit path because rt->dst.dev
provides the vlan/pppoe device.

XMIT_NEIGH now looks more similar to XMIT_DIRECT but the check for stale
dst and the neighbour lookup still remain in place which is convenient
to deal with network topology changes.

Note that nft_flow_route() needs to relax the check for _XMIT_NEIGH so
the existing basic xfrm offload (which only works in one direction) does
not break.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_flow_table.h
net/netfilter/nf_flow_table_core.c
net/netfilter/nf_flow_table_ip.c
net/netfilter/nf_flow_table_path.c