• Amit Cohen's avatar
    mlxsw: spectrum: Add a temporary variable to indicate bridge model · d6d90266
    Amit Cohen authored
    As part of transition to unified bridge model, many different firmware
    configurations are done.
    
    Some of the configuration that needs to be done for the unified bridge
    model is not valid under the legacy model, and would be rejected by the
    firmware. At the same time, the driver cannot switch to the unified bridge
    model until all of the code has been converted.
    
    To allow breaking the change into patches, and to not break driver
    behavior during the transition, add a boolean variable to indicate bridge
    model. Then, forbidden configurations will be skipped using the check -
    "if (!mlxsw_sp->ubridge)".
    
    The new variable is temporary for several sets, it will be removed when
    firmware will be configured to work with unified bridge model.
    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 avatarPaolo Abeni <pabeni@redhat.com>
    d6d90266
spectrum.c 148 KB