mirror-linux/drivers/net/ethernet/airoha
Lorenzo Bianconi 105ce7ad57 net: airoha: npu: Add a NPU callback to initialize flow stats
Introduce a NPU callback to initialize flow stats and remove NPU stats
initialization from airoha_npu_get routine. Add num_stats_entries to
airoha_npu_ppe_stats_setup routine.
This patch makes the code more readable since NPU statistic are now
initialized on demand by the NPU consumer (at the moment NPU statistic
are configured just by the airoha_eth driver).
Moreover this patch allows the NPU consumer (PPE module) to explicitly
enable/disable NPU flow stats.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250924-airoha-npu-init-stats-callback-v1-1-88bdf3c941b2@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-09-26 17:29:54 -07:00
..
Kconfig net: airoha: Add FLOW_CLS_STATS callback support 2025-05-20 20:00:51 -07:00
Makefile net: airoha: Introduce PPE debugfs support 2025-03-04 13:22:10 +01:00
airoha_eth.c net: airoha: Introduce check_skb callback in ppe_dev ops 2025-08-25 17:16:01 -07:00
airoha_eth.h net: airoha: Avoid -Wflex-array-member-not-at-end warning 2025-09-23 16:52:42 -07:00
airoha_npu.c net: airoha: npu: Add a NPU callback to initialize flow stats 2025-09-26 17:29:54 -07:00
airoha_ppe.c net: airoha: npu: Add a NPU callback to initialize flow stats 2025-09-26 17:29:54 -07:00
airoha_ppe_debugfs.c net: airoha: Add FLOW_CLS_STATS callback support 2025-05-20 20:00:51 -07:00
airoha_regs.h net: airoha: Fix PPE_IP_PROTO_CHK register definitions 2025-09-19 07:09:18 -07:00