Re: [PATCH net v2] octeontx2-af: skip NPC_AF_MATCH_STATX access on cn20k
From: Nicolai Buchwitz
Date: Fri Nov 06 2026 - 09:10:55 EST
Hi Vadluri
On 3.11.2026 10:18, 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.
What does the read do on cn20k, fault or just return garbage? If it
is only the latter, with the recent discussion about routing
non-critical fixes through net-next, this looks like net-next
material to me?
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>
---
[...]
Reviewed-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>
Thanks,
Nicolai