net: airoha: Add FLOW_CLS_STATS callback support
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 16 May 2025 08:00:00 +0000 (10:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 May 2025 03:00:51 +0000 (20:00 -0700)
commitb81e0f2b58be37628b2e12f8dffdd63c84573e75
treece62e2612b3d82b373e819482f63dd7b33a67270
parentc52918744ee1e49cea86622a2633b9782446428f
net: airoha: Add FLOW_CLS_STATS callback support

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

FLOW_CLS_STATS can be enabled or disabled at compile time.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250516-airoha-en7581-flowstats-v2-2-06d5fbf28984@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/Kconfig
drivers/net/ethernet/airoha/airoha_eth.h
drivers/net/ethernet/airoha/airoha_npu.c
drivers/net/ethernet/airoha/airoha_npu.h
drivers/net/ethernet/airoha/airoha_ppe.c
drivers/net/ethernet/airoha/airoha_ppe_debugfs.c