mlxsw: spectrum: Upper-bound supported FW version
authorYuval Mintz <yuvalm@mellanox.com>
Thu, 18 Jan 2018 11:55:23 +0000 (12:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jan 2018 20:45:56 +0000 (15:45 -0500)
commitfd5204cdfb34c8b1e265d09791eb5dd4bacce642
treed444766113d7d31ff569dc5b1d108c38643481de
parentea8de47140a4844a1a7e74c1f08341be156b3af6
mlxsw: spectrum: Upper-bound supported FW version

During initialization the driver checks whether the flashed FW image
suits its requirements by checking that it's sufficiently new.
However, there's only a weak backward compatibility scheme that is
actually guaranteed by the FW, so driver must also upper bound the
version to prevent compatibility issues between current driver and some
possible future fw.

Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c