diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-10-31 11:42:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-31 10:54:46 -0700 |
commit | 25911e1b97971a06b4c053f70c7c1eb0c33a607e (patch) | |
tree | a09367e68929eab8e5f4fc5093093996087c20d6 /drivers/net/ethernet/mellanox/mlxsw/port.h | |
parent | a513b1a5910bfc15d5a42e969e66a7986fd32819 (diff) | |
download | talos-op-linux-25911e1b97971a06b4c053f70c7c1eb0c33a607e.tar.gz talos-op-linux-25911e1b97971a06b4c053f70c7c1eb0c33a607e.zip |
mlxsw: spectrum: Use PMTM register to get max module width
Currently the max module width is hard-coded according to ASIC type.
That is not entirely correct, as the max module width might differ
per-board. Use PMTM register to query FW for maximal width of a module.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/port.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/port.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/port.h b/drivers/net/ethernet/mellanox/mlxsw/port.h index a33eeef0b00c..741fd2989d12 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/port.h +++ b/drivers/net/ethernet/mellanox/mlxsw/port.h @@ -24,8 +24,6 @@ #define MLXSW_PORT_DONT_CARE 0xFF -#define MLXSW_PORT_MODULE_MAX_WIDTH 4 - enum mlxsw_port_admin_status { MLXSW_PORT_ADMIN_STATUS_UP = 1, MLXSW_PORT_ADMIN_STATUS_DOWN = 2, |