Re: [PATCH net-next] net: dsa: mv88e6xxx: Add partial support for TCAM entries
From: Cedric Jehasse
Date: Tue Feb 17 2026 - 03:19:41 EST
>> The match registers (pages 0 and 1) are almost identical across all of these
>> families.
>> The only difference is the register at page 0 offset 0x01 is used on the 6393
>> and is reserved on all the others.
>
>So a helper to access that register would be
>mv88e6393_tcam_set_match() or similar.
What i said earlier was wrong. The register at offset 0x01 is not a match
register, but a common register for all TCAM pages.
On the other families the TCAM operation register at offset 0x00 is used to
select the page number and TCAM entry index.
The 6393 has the TCAM extension register at offset 0x01 to also select block
and port number. Eg. on the 6393 page2 block 0 is a different set of registers
than page 2 block 6.
The current patch doesn't write the TCAM extension register because only
block 0 is used. I'll add this as it shouldn't assume that register contains
the correct block and port values.