mlxsw: reg: Add flood related field to SFMR register
SFMR register creates and configures FIDs. As preparation for unified bridge model, add a required field for future use. The PGT (Port Group) table maps multicast ID (MID) to {local port list, SMPE index} on Spectrum-1 and to {local port list} on the other ASICs. In the legacy model, software did not interact with this table directly. Instead, it was accessed by firmware in response to registers such as SFTR and SMID. In the new model, the SFTR register is deprecated and software has full control over the PGT table using the SMID register. The configuration of MDB entries (using SFD) is unchanged, but flooding configuration is completely different. SFGC register maps {packet type, bridge type} -> {MID base, table type}, then with FID and FID-offset which are configured via SFMR, the MID index is obtained. Add the field 'flood_bridge_type' to SFMR, software can separate between 802.1q FIDs and vFIDs using two types which are supported. Signed-off-by: Amit Cohen <amcohen@nvidia.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
485c281cad
commit
94536249b8
@ -1831,6 +1831,16 @@ MLXSW_ITEM32(reg, sfmr, fid, 0x00, 0, 16);
|
||||
*/
|
||||
MLXSW_ITEM32(reg, sfmr, flood_rsp, 0x08, 31, 1);
|
||||
|
||||
/* reg_sfmr_flood_bridge_type
|
||||
* Flood bridge type (see SFGC.bridge_type).
|
||||
* 0 - type_0.
|
||||
* 1 - type_1.
|
||||
* Access: RW
|
||||
*
|
||||
* Note: Reserved when legacy bridge model is used and when flood_rsp=1.
|
||||
*/
|
||||
MLXSW_ITEM32(reg, sfmr, flood_bridge_type, 0x08, 28, 1);
|
||||
|
||||
/* reg_sfmr_fid_offset
|
||||
* FID offset.
|
||||
* Used to point into the flooding table selected by SFGC register if
|
||||
|
Loading…
x
Reference in New Issue
Block a user