]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mlxsw: Changing the maximum number of multicast group to a define
authorElad Raz <eladr@mellanox.com>
Sun, 10 Jan 2016 20:06:26 +0000 (21:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Jan 2016 21:50:21 +0000 (16:50 -0500)
Signed-off-by: Elad Raz <eladr@mellanox.com>
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h

index b6f365060dd71699238e4de8eeed2f09a760ebde..d0e98b8a88324901fcb3726c3aca72073a98fcc2 100644 (file)
@@ -1939,7 +1939,7 @@ static struct mlxsw_config_profile mlxsw_sp_config_profile = {
        .used_max_port_per_lag          = 1,
        .max_port_per_lag               = MLXSW_SP_PORT_PER_LAG_MAX,
        .used_max_mid                   = 1,
-       .max_mid                        = 7000,
+       .max_mid                        = MLXSW_SP_MID_MAX,
        .used_max_pgt                   = 1,
        .max_pgt                        = 0,
        .used_max_system_port           = 1,
index 7601789dd5226eec3831ce19ee5f3184deb0e0c2..d8ef097faaa4d72badd81239605765fadac753b9 100644 (file)
@@ -54,6 +54,8 @@
 #define MLXSW_SP_LAG_MAX 64
 #define MLXSW_SP_PORT_PER_LAG_MAX 16
 
+#define MLXSW_SP_MID_MAX 7000
+
 struct mlxsw_sp_port;
 
 struct mlxsw_sp_upper {