[PATCH net-next v2 2/3] net: airoha: Add FLOW_CLS_STATS callback support
Simon Horman
horms at kernel.org
Mon May 19 02:46:37 PDT 2025
On Fri, May 16, 2025 at 10:00:00AM +0200, Lorenzo Bianconi wrote:
...
> @@ -1027,6 +1255,15 @@ int airoha_ppe_init(struct airoha_eth *eth)
> if (!ppe->foe_flow)
> return -ENOMEM;
>
> + foe_size = PPE_STATS_NUM_ENTRIES * sizeof(*ppe->foe_stats);
> + if (foe_size) {
Hi Lorenzo,
It's unclear to me how foe_size can be zero.
> + ppe->foe_stats = dmam_alloc_coherent(eth->dev, foe_size,
> + &ppe->foe_stats_dma,
> + GFP_KERNEL);
> + if (!ppe->foe_stats)
> + return -ENOMEM;
> + }
> +
> err = rhashtable_init(ð->flow_table, &airoha_flow_table_params);
> if (err)
> return err;
...
More information about the Linux-mediatek
mailing list