mlxsw: spectrum: Use port_module_max_width to compute base port index
Instead of using constant value, use port_module_max_width which is aligned with the cluster size. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Shalom Toledo <shalomt@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
49185277cc
commit
013da29791
|
@ -32,8 +32,6 @@
|
|||
|
||||
#define MLXSW_SP_MID_MAX 7000
|
||||
|
||||
#define MLXSW_SP_PORTS_PER_CLUSTER_MAX 4
|
||||
|
||||
#define MLXSW_SP_PORT_BASE_SPEED_25G 25000 /* Mb/s */
|
||||
#define MLXSW_SP_PORT_BASE_SPEED_50G 50000 /* Mb/s */
|
||||
|
||||
|
|
Loading…
Reference in New Issue