[PATCH net-next] net: airoha: npu: Add a NPU callback to initialize flow stats
Simon Horman
horms at kernel.org
Thu Sep 25 03:32:16 PDT 2025
On Wed, Sep 24, 2025 at 11:14:53PM +0200, Lorenzo Bianconi wrote:
> 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 at kernel.org>
Reviewed-by: Simon Horman <horms at kernel.org>
More information about the linux-arm-kernel
mailing list