Subject: Re: [PATCH v16 net-next 1/9] octeontx2-af: npc: cn20k: debugfs enhancements

From: Jakub Kicinski <[email-masked]>
Date: Mon, 25 May 2026 13:59:44 -0700

On Thu, 21 May 2026 15:22:55 +0530 Ratheesh Kannoth wrote:
> Improve MCAM visibility and field debugging for CN20K NPC.
> 
> - Extend "mcam_layout" to show enabled (+) or disabled state per entry
>   so status can be verified without parsing the full "mcam_entry" dump.
> - Add "dstats" debugfs entry: reports recently hit MCAM indices with
>   packet counts; stats are cleared on read so each read shows deltas.
> - Add "mismatch" debugfs entry: lists MCAM entries that are enabled
>   but not explicitly allocated, helping diagnose allocation/field issues.

debugfs file which clears state seems quite odd.
Does any user need this?
This looks like a crutch for badly written tests TBH.