Re: [PATCH net-next v3 05/13] octeontx2-af: npc: cn20k: Allocate default MCAM indexes

From: Ratheesh Kannoth

Date: Tue Jan 13 2026 - 04:59:17 EST


On 2026-01-11 at 04:22:23, Jakub Kicinski (kuba@xxxxxxxxxx) wrote:
> On Fri, 9 Jan 2026 11:18:20 +0530 Ratheesh Kannoth wrote:
> > Reserving MCAM entries in the AF driver for installing default MCAM
> > entries is not an efficient allocation method, as it results in
> > significant wastage of entries. This patch allocates MCAM indexes for
> > promiscuous, multicast, broadcast, and unicast traffic in descending
> > order of indexes (from lower to higher priority) when the NIX LF is
> > attached to the PF/VF.
>
> Warning: drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.h:115 Enum value 'NPC_DFT_RULE_MAX_ID' not described in enum 'npc_dft_rule_id'
> Warning: drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.h:115 Enum value 'NPC_DFT_RULE_MAX_ID' not described in enum 'npc_dft_rule_id'
ACK.
>
> You can use the
>
> /* private: */
Thanks
>
> comment/label to mark off "misc" enum entries that don't need a doc