• Petr Machata's avatar
    mlxsw: Make MLXSW_SP1_FWREV_MINOR a hard requirement · 12ba7e10
    Petr Machata authored
    Up until now, mlxsw tolerated firmware versions that weren't exactly
    matching the required version, if the branch number matched. That
    allowed the users to test various firmware versions as long as they were
    on the right branch.
    
    On the other hand, it made it impossible for mlxsw to put a hard lower
    bound on a version that fixes all problems known to date. If a user had
    a somewhat older FW version installed, mlxsw would start up just fine,
    possibly performing non-optimally as it would use features that trigger
    problematic behavior.
    
    Therefore tweak the check to accept any FW version that is:
    
    - on the same branch as the preferred version, and
    - the same as or newer than the preferred version.
    Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
    Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    12ba7e10
spectrum.c 142 KB