Files
linux/drivers/net
Danielle Ratson ce4995bc6c mlxsw: spectrum: Allow driver to load with old firmware versions
The driver fails to load with old firmware versions that cannot report
the maximum number of RIF MAC profiles [1].

Fix this by defaulting to a maximum of a single profile in such
situations, as multiple profiles are not supported by old firmware
versions.

[1]
mlxsw_spectrum 0000:03:00.0: cannot register bus device
mlxsw_spectrum: probe of 0000:03:00.0 failed with error -5

Fixes: 1c375ffb2e ("mlxsw: spectrum_router: Expose RIF MAC profiles to devlink resource")
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reported-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-11-23 11:46:18 +00:00
..
2021-11-22 12:34:37 +00:00
2021-10-22 10:16:09 -07:00
2021-10-22 10:16:14 -07:00
2021-11-23 11:38:13 +00:00
2021-10-09 11:55:01 +01:00
2021-10-22 10:16:18 -07:00
2021-11-09 14:00:13 +00:00
2021-10-09 11:55:01 +01:00
2021-10-09 11:55:01 +01:00