flowtable: consolidate xmit path
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | netfilter: flowtable: move path discovery infrastructure to its own fileinclude/ net/ net/ +1 more | +274 | 1 reply | |
| 2/5 | netfilter: flowtable: consolidate xmit pathinclude/ net/ net/ +1 more | +57 | 2 replies | |
| 3/5 | netfilter: flowtable: inline vlan encapsulation in xmit pathnet/ net/ | +24 | 0 replies | |
| 4/5 | netfilter: flowtable: inline pppoe encapsulation in xmit pathnet/ net/ | +44 | 0 replies | |
| 5/5 | netfilter: flowtable: remove hw_ifidxinclude/ net/ net/ +1 more | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH nf-next 0/5] flowtable: consolidate xmit path
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
Signature · 1 line
2.30.2