netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/13] Introduce flowtable hw offloading in airoha_eth driver
@ 2025-02-05 18:21 Lorenzo Bianconi
  2025-02-05 18:21 ` [PATCH net-next 01/13] net: airoha: Move airoha_eth driver in a dedicated folder Lorenzo Bianconi
                   ` (12 more replies)
  0 siblings, 13 replies; 25+ messages in thread
From: Lorenzo Bianconi @ 2025-02-05 18:21 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Felix Fietkau, Sean Wang, Matthias Brugger,
	AngeloGioacchino Del Regno, Philipp Zabel, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Lorenzo Bianconi
  Cc: netdev, linux-arm-kernel, linux-mediatek, devicetree, upstream,
	Christian Marangi

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).

---
Lorenzo Bianconi (13):
      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: 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: 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/net/airoha,en7581-eth.yaml |    8 +
 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 | 1263 +++++---------------
 drivers/net/ethernet/airoha/airoha_eth.h           |  625 ++++++++++
 drivers/net/ethernet/airoha/airoha_npu.c           |  500 ++++++++
 drivers/net/ethernet/airoha/airoha_ppe.c           |  812 +++++++++++++
 drivers/net/ethernet/airoha/airoha_ppe_debugfs.c   |  175 +++
 drivers/net/ethernet/airoha/airoha_regs.h          |  793 ++++++++++++
 drivers/net/ethernet/mediatek/Kconfig              |    8 -
 drivers/net/ethernet/mediatek/Makefile             |    1 -
 13 files changed, 3217 insertions(+), 1003 deletions(-)
---
base-commit: 135c3c86a7cef4ba3d368da15b16c275b74582d3
change-id: 20250205-airoha-en7581-flowtable-offload-e3a11b3b34ad

Best regards,
-- 
Lorenzo Bianconi <lorenzo@kernel.org>


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

end of thread, other threads:[~2025-02-07  1:22 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-05 18:21 [PATCH net-next 00/13] Introduce flowtable hw offloading in airoha_eth driver Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 01/13] net: airoha: Move airoha_eth driver in a dedicated folder Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 02/13] net: airoha: Move definitions in airoha_eth.h Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 03/13] net: airoha: Move reg/write utility routines " Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 04/13] net: airoha: Move register definitions in airoha_regs.h Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 05/13] net: airoha: Move DSA tag in DMA descriptor Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 06/13] net: airoha: Enable support for multiple net_devices Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 07/13] net: airoha: Move REG_GDM_FWD_CFG() initialization in airoha_dev_init() Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 08/13] net: airoha: Rename airoha_set_gdm_port_fwd_cfg() in airoha_set_vip_for_gdm_port() Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 09/13] dt-bindings: net: airoha: Add airoha,npu phandle property Lorenzo Bianconi
2025-02-05 19:10   ` Conor Dooley
2025-02-05 19:33     ` Lorenzo Bianconi
2025-02-05 20:01       ` Conor Dooley
2025-02-05 20:28         ` Conor Dooley
2025-02-05 20:54           ` Lorenzo Bianconi
2025-02-06 18:26             ` Conor Dooley
2025-02-06 20:32               ` Lorenzo Bianconi
2025-02-05 20:52         ` Lorenzo Bianconi
2025-02-06 18:24           ` Conor Dooley
2025-02-05 18:21 ` [PATCH net-next 10/13] net: airoha: Introduce PPE initialization via NPU Lorenzo Bianconi
2025-02-06 23:06   ` kernel test robot
2025-02-07  1:21   ` kernel test robot
2025-02-05 18:21 ` [PATCH net-next 11/13] net: airoha: Introduce flowtable offload support Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 12/13] net: airoha: Add loopback support for GDM2 Lorenzo Bianconi
2025-02-05 18:21 ` [PATCH net-next 13/13] net: airoha: Introduce PPE debugfs support Lorenzo Bianconi

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).