• Amit Cohen's avatar
    mlxsw: Add SMPE related fields to SMID2 register · 894b98d5
    Amit Cohen authored
    SMID register maps multicast ID (MID) into a list of local ports.
    As preparation for unified bridge model, add some required fields for
    future use.
    
    The device includes two main tables to support layer 2 multicast (i.e.,
    MDB and flooding). These are the PGT (Port Group Table) and the
    MPE (Multicast Port Egress) table.
    - PGT is {MID -> (bitmap of local_port, SPME index)}
    - MPE is {(Local port, SMPE index) -> eVID}
    
    In Spectrum-1, both indexes into the MPE table (local port and SMPE) are
    derived from the PGT table. Therefore, the SMPE index needs to be
    programmed as part of the PGT entry via new fields in SMID - 'smpe_valid'
    and 'smpe'.
    
    Add the two mentioned fields for future use and align the callers of
    mlxsw_reg_smid2_pack() to pass zeros for SMPE fields.
    Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    894b98d5
spectrum_switchdev.c 101 KB