Skip to content

Commit b555cf4

Browse files
idoschdavem330
authored andcommitted
mlxsw: spectrum: Reduce number of supported 802.1D bridges
Resources allocated for these bridges at init time cannot be later used for other purposes. While current number is supported by the device, it's mostly theoretical with regards to any real use case, which leads to poor utilization of device's resources. Solve that by reducing the number. The long term plan is to make this value (along with others) user configurable via devlink and write it to NVRAM, so that it can be used during the next init. Until then we must hardcode such values. Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 15f41e2 commit b555cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
#define MLXSW_SP_VFID_BASE VLAN_N_VID
5252
#define MLXSW_SP_VFID_PORT_MAX 512 /* Non-bridged VLAN interfaces */
53-
#define MLXSW_SP_VFID_BR_MAX 8192 /* Bridged VLAN interfaces */
53+
#define MLXSW_SP_VFID_BR_MAX 6144 /* Bridged VLAN interfaces */
5454
#define MLXSW_SP_VFID_MAX (MLXSW_SP_VFID_PORT_MAX + MLXSW_SP_VFID_BR_MAX)
5555

5656
#define MLXSW_SP_LAG_MAX 64

0 commit comments

Comments
 (0)