Re: [PATCH net v2] octeontx2-af: skip NPC_AF_MATCH_STATX access on cn20k
From: Simon Horman
Date: Fri Nov 06 2026 - 07:25:23 EST
On Tue, Nov 03, 2026 at 09:18:31AM +0000, Vadluri Mukunda wrote:
> From: Subbaraya Sundeep <sbhatta@xxxxxxxxxxx>
>
> NPC_AF_MATCH_STATX is not present on cn20k silicon, and cn20k does
> not set up an RX miss action counter. Two paths still access it:
> the npc_delete_flow mailbox, which reads the counter of the deleted
> rule, and the rx_miss_act_stats debugfs file, which would read
> counter 0. Avoid the access on cn20k. Counter support for cn20k is
> left for later.
>
> Found by code inspection. The issue was not triggered on hardware.
> Compile tested only; not tested on real hardware.
>
> Fixes: 4e527f1e5c15 ("octeontx2-af: npc: cn20k: Add new mailboxes for CN20K silicon")
> Signed-off-by: Subbaraya Sundeep <sbhatta@xxxxxxxxxxx>
> Signed-off-by: Vadluri Mukunda <vmukunda@xxxxxxxxxxx>
> ---
> v2:
> - Fixes tag now points to the upstream commit
> - Also skip creating the rx_miss_act_stats debugfs file on cn20k
> - Use full name in Signed-off-by
> - Add how the issue was found and what testing was done
> v1: https://lore.kernel.org/netdev/20261026035140.666684-1-vmukunda@xxxxxxxxxxx/
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>