]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Allow lane to start from non-zero index
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:29 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:18 +0000 (11:00 +0100)
commit34c9dcaac15be1990ead5eb2068607ef1cf67c76
tree518735c450e6b0ddbf915dc131f25f5575080948
parentf408664667520565c4d6d3c54ef5da0b1767e13b
mlxsw: spectrum: Allow lane to start from non-zero index

So far, the lane index always started from zero. That is not true for
modular systems with gearbox-equipped linecards. Loose the check so the
lanes can start from non-zero index.

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