diff options
author | Elad Raz <eladr@mellanox.com> | 2016-10-28 21:35:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-30 16:50:17 -0400 |
commit | c68b71cb2fa98e2fa1e177278b349cf2653d8d83 (patch) | |
tree | 03bf8c6ca99a768676fba017f0ba7af9c33714d7 /drivers/net/ethernet/mellanox/mlxsw/switchx2.c | |
parent | 67963a33b4fde8f77b046f80daf83afc6e126991 (diff) | |
download | linux-stable-c68b71cb2fa98e2fa1e177278b349cf2653d8d83.tar.gz linux-stable-c68b71cb2fa98e2fa1e177278b349cf2653d8d83.tar.bz2 linux-stable-c68b71cb2fa98e2fa1e177278b349cf2653d8d83.zip |
mlxsw: switchx2: Add Infiniband switch partition
In order to put a port in Infiniband fabric it should be assigned
to separate swid (Switch partition) that initialized as IB swid.
Signed-off-by: Elad Raz <eladr@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/switchx2.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/switchx2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c index 8eac26f42425..a905589263d9 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c +++ b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c @@ -1590,13 +1590,17 @@ static struct mlxsw_config_profile mlxsw_sx_config_profile = { .used_flood_mode = 1, .flood_mode = 3, .used_max_ib_mc = 1, - .max_ib_mc = 0, + .max_ib_mc = 6, .used_max_pkey = 1, .max_pkey = 0, .swid_config = { { .used_type = 1, .type = MLXSW_PORT_SWID_TYPE_ETH, + }, + { + .used_type = 1, + .type = MLXSW_PORT_SWID_TYPE_IB, } }, .resource_query_enable = 0, |