• Amit Cohen's avatar
    mlxsw: reg: Replace MID related fields in SFGC register · 48bca94f
    Amit Cohen authored
    SFGC register maps {packet type, bridge type} -> {MID base, table type}.
    As preparation for unified bridge model, remove 'mid' field and add
    'mid_base' field.
    
    The MID index (index to PGT table which maps MID to local port list and
    SMPE index) is a result of 'mid_base' + 'fid_offset'. Using the legacy
    bridge model, firmware configures 'mid_base'. However, using the new model,
    software is responsible to configure it via SFGC register.
    
    The 'mid_base' is configured per {packet type, bridge type}, for
    example, for {Unicast, .1Q}, {Broadcast, .1D}.
    
    Add the field 'mid_base' to SFGC register and increase the length of the
    register accordingly.
    
    Remove the field 'mid' as currently it is ignored by the device, its use
    is an old leftover.
    Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    48bca94f
port.h 976 Bytes