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>
This commit is contained in:
parent
67963a33b4
commit
c68b71cb2f
|
@ -44,6 +44,7 @@
|
|||
|
||||
#define MLXSW_PORT_SWID_DISABLED_PORT 255
|
||||
#define MLXSW_PORT_SWID_ALL_SWIDS 254
|
||||
#define MLXSW_PORT_SWID_TYPE_IB 1
|
||||
#define MLXSW_PORT_SWID_TYPE_ETH 2
|
||||
|
||||
#define MLXSW_PORT_MID 0xd000
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue