mlxsw: Treat local port 64 as valid
MLXSW_PORT_MAX_PORTS represents the maximum number of local ports, which
is 65 for both ASICs (SwitchX-2 and Spectrum) supported by this driver.
Fixes: 93c1edb27f
("mlxsw: Introduce Mellanox switch driver core")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
853effc55b
commit
1e5ad30c64
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@
|
||||||
#define MLXSW_PORT_MID 0xd000
|
#define MLXSW_PORT_MID 0xd000
|
||||||
|
|
||||||
#define MLXSW_PORT_MAX_PHY_PORTS 0x40
|
#define MLXSW_PORT_MAX_PHY_PORTS 0x40
|
||||||
#define MLXSW_PORT_MAX_PORTS MLXSW_PORT_MAX_PHY_PORTS
|
#define MLXSW_PORT_MAX_PORTS (MLXSW_PORT_MAX_PHY_PORTS + 1)
|
||||||
|
|
||||||
#define MLXSW_PORT_DEVID_BITS_OFFSET 10
|
#define MLXSW_PORT_DEVID_BITS_OFFSET 10
|
||||||
#define MLXSW_PORT_PHY_BITS_OFFSET 4
|
#define MLXSW_PORT_PHY_BITS_OFFSET 4
|
||||||
|
|
Loading…
Reference in a new issue