net: airoha: Introduce Airoha NPU support
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 28 Feb 2025 10:54:20 +0000 (11:54 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 4 Mar 2025 12:22:09 +0000 (13:22 +0100)
commit23290c7bc190def4e1ca61610992d9b7c32e33f3
treeeaebf5dbc3db6ddafaf63f9ca578653d999d3bd0
parent9b1a0b72264cafdbc1e06ef8531bc6bd693b49ca
net: airoha: Introduce Airoha NPU support

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.
The airoha_eth driver can enable hw acceleration of learned 5-tuples
rules if the user configure them in netfilter flowtable (netfilter
flowtable support will be added with subsequent patches).
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.
Introduce basic support for Airoha NPU module.

Tested-by: Sayantan Nandy <sayantan.nandy@airoha.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/Kconfig
drivers/net/ethernet/airoha/Makefile
drivers/net/ethernet/airoha/airoha_eth.h
drivers/net/ethernet/airoha/airoha_npu.c [new file with mode: 0644]
drivers/net/ethernet/airoha/airoha_npu.h [new file with mode: 0644]