diff options
author | Ido Schimmel <idosch@mellanox.com> | 2016-02-26 17:32:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-01 16:07:31 -0500 |
commit | 18f1e70c413713f28629ffe6863a2c43248ff7a3 (patch) | |
tree | 459917c7636f20843eddce7956b4949bfa28b0c6 /drivers/net/ethernet/mellanox/mlxsw/port.h | |
parent | a133318cde2000a3264032ea3b561c9054613486 (diff) | |
download | linux-stable-18f1e70c413713f28629ffe6863a2c43248ff7a3.tar.gz linux-stable-18f1e70c413713f28629ffe6863a2c43248ff7a3.tar.bz2 linux-stable-18f1e70c413713f28629ffe6863a2c43248ff7a3.zip |
mlxsw: spectrum: Introduce port splitting
Allow a user to split or unsplit a port using the newly introduced
devlink ops.
Once split, the original netdev is destroyed and 2 or 4 others are
created, according to user configuration. The new ports are like any
other port, with the sole difference of supporting a lower maximum
speed. When unsplit, the reverse process takes place.
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/port.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/port.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/port.h b/drivers/net/ethernet/mellanox/mlxsw/port.h index ae65b9940aed..f33b997f2b61 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/port.h +++ b/drivers/net/ethernet/mellanox/mlxsw/port.h @@ -59,6 +59,8 @@ #define MLXSW_PORT_DONT_CARE (MLXSW_PORT_MAX_PORTS) +#define MLXSW_PORT_MODULE_MAX_WIDTH 4 + enum mlxsw_port_admin_status { MLXSW_PORT_ADMIN_STATUS_UP = 1, MLXSW_PORT_ADMIN_STATUS_DOWN = 2, |