[PATCH net-next v3 00/16] Introduce flowtable hw offloading in airoha_eth driver
Lorenzo Bianconi
lorenzo at kernel.org
Sun Feb 9 04:08:53 PST 2025
Introduce netfilter flowtable integration in airoha_eth driver to
offload 5-tuple flower rules learned by the PPE module if the user
accelerates them using a nft configuration similar to the one reported
below:
table inet filter {
flowtable ft {
hook ingress priority filter
devices = { lan1, lan2, lan3, lan4, eth1 }
flags offload;
}
chain forward {
type filter hook forward priority filter; policy accept;
meta l4proto { tcp, udp } flow add @ft
}
}
Packet Processor Engine (PPE) module available on EN7581 SoC populates
the PPE table with 5-tuples flower rules learned from traffic forwarded
between the GDM ports connected to the Packet Switch Engine (PSE) module.
airoha_eth driver configures and collects data from the PPE module via a
Network Processor Unit (NPU) RISC-V module available on the EN7581 SoC.
Move airoha_eth driver in a dedicated folder
(drivers/net/ethernet/airoha).
---
Changes in v3:
- Fix TSO support for header cloned skbs
- Do not use skb_pull_rcsum() in airoha_get_dsa_tag()
- Fix head lean computation after running airoha_get_dsa_tag() in
airoha_dev_xmit()
- Link to v2: https://lore.kernel.org/r/20250207-airoha-en7581-flowtable-offload-v2-0-3a2239692a67@kernel.org
Changes in v2:
- Add airoha-npu document binding
- Enable Rx SPTAG on MT7530 dsa switch for EN7581 SoC.
- Fix warnings in airoha_npu_run_firmware()
- Fix sparse warnings
- Link to v1: https://lore.kernel.org/r/20250205-airoha-en7581-flowtable-offload-v1-0-d362cfa97b01@kernel.org
---
Lorenzo Bianconi (16):
net: airoha: Fix TSO support for header cloned skbs
net: airoha: Move airoha_eth driver in a dedicated folder
net: airoha: Move definitions in airoha_eth.h
net: airoha: Move reg/write utility routines in airoha_eth.h
net: airoha: Move register definitions in airoha_regs.h
net: airoha: Move DSA tag in DMA descriptor
net: dsa: mt7530: Enable Rx sptag for EN7581 SoC
net: airoha: Enable support for multiple net_devices
net: airoha: Move REG_GDM_FWD_CFG() initialization in airoha_dev_init()
net: airoha: Rename airoha_set_gdm_port_fwd_cfg() in airoha_set_vip_for_gdm_port()
dt-bindings: arm: airoha: Add the NPU node for EN7581 SoC
dt-bindings: net: airoha: Add airoha,npu phandle property
net: airoha: Introduce PPE initialization via NPU
net: airoha: Introduce flowtable offload support
net: airoha: Add loopback support for GDM2
net: airoha: Introduce PPE debugfs support
.../devicetree/bindings/arm/airoha,en7581-npu.yaml | 71 ++
.../devicetree/bindings/net/airoha,en7581-eth.yaml | 10 +
drivers/net/dsa/mt7530.c | 5 +
drivers/net/dsa/mt7530.h | 4 +
drivers/net/ethernet/Kconfig | 2 +
drivers/net/ethernet/Makefile | 1 +
drivers/net/ethernet/airoha/Kconfig | 23 +
drivers/net/ethernet/airoha/Makefile | 9 +
.../net/ethernet/{mediatek => airoha}/airoha_eth.c | 1284 +++++---------------
drivers/net/ethernet/airoha/airoha_eth.h | 626 ++++++++++
drivers/net/ethernet/airoha/airoha_npu.c | 501 ++++++++
drivers/net/ethernet/airoha/airoha_ppe.c | 834 +++++++++++++
drivers/net/ethernet/airoha/airoha_ppe_debugfs.c | 175 +++
drivers/net/ethernet/airoha/airoha_regs.h | 798 ++++++++++++
drivers/net/ethernet/mediatek/Kconfig | 8 -
drivers/net/ethernet/mediatek/Makefile | 1 -
16 files changed, 3344 insertions(+), 1008 deletions(-)
---
base-commit: acdefab0dcbc3833b5a734ab80d792bb778517a0
change-id: 20250205-airoha-en7581-flowtable-offload-e3a11b3b34ad
Best regards,
--
Lorenzo Bianconi <lorenzo at kernel.org>
More information about the linux-arm-kernel
mailing list