[PATCH net-next v2 0/3] net: airoha: Add per-flow stats support to hw flowtable offloading
Lorenzo Bianconi
lorenzo at kernel.org
Fri May 16 00:59:58 PDT 2025
Introduce per-flow stats accounting to the flowtable hw offload in the
airoha_eth driver. Flow stats are split in the PPE and NPU modules:
- PPE: accounts for high 32bit of per-flow stats
- NPU: accounts for low 32bit of per-flow stats
---
Changes in v2:
- fix memory leaks in airoha_npu_stats_setup() and in
airoha_npu_foe_commit_entry()
- disable hw keepalive
- fix sparse warnings
- Link to v1: https://lore.kernel.org/r/20250514-airoha-en7581-flowstats-v1-0-c00ede12a2ca@kernel.org
---
Lorenzo Bianconi (3):
net: airoha: npu: Move memory allocation in airoha_npu_send_msg() caller
net: airoha: Add FLOW_CLS_STATS callback support
net: airoha: ppe: Disable packet keepalive
drivers/net/ethernet/airoha/Kconfig | 7 +
drivers/net/ethernet/airoha/airoha_eth.h | 33 +++
drivers/net/ethernet/airoha/airoha_npu.c | 178 ++++++++++-----
drivers/net/ethernet/airoha/airoha_npu.h | 4 +-
drivers/net/ethernet/airoha/airoha_ppe.c | 270 +++++++++++++++++++++--
drivers/net/ethernet/airoha/airoha_ppe_debugfs.c | 9 +-
6 files changed, 427 insertions(+), 74 deletions(-)
---
base-commit: 894fbb55e60cab4ea740f6c65a08b5f8155221f4
change-id: 20250415-airoha-en7581-flowstats-7e69cf3fd94d
Best regards,
--
Lorenzo Bianconi <lorenzo at kernel.org>
More information about the Linux-mediatek
mailing list