]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
mlxsw: Fixing vlans init range
authorElad Raz <eladr@mellanox.com>
Wed, 6 Jan 2016 12:01:08 +0000 (13:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jan 2016 19:42:41 +0000 (14:42 -0500)
Initialize VLANs 0..4095 (Remove init for VID 4096).

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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c

index 62159547ebf9d2ab2aac3a1851cf5fedbe642319..dcf77c9d76497f1700b6e06e76323f4279289cc8 100644 (file)
@@ -1201,7 +1201,8 @@ int mlxsw_sp_port_vlan_init(struct mlxsw_sp_port *mlxsw_sp_port)
         * with VID 1.
         */
        mlxsw_sp_port->pvid = 1;
-       err = __mlxsw_sp_port_vlans_del(mlxsw_sp_port, 0, VLAN_N_VID, true);
+       err = __mlxsw_sp_port_vlans_del(mlxsw_sp_port, 0, VLAN_N_VID - 1,
+                                       true);
        if (err) {
                netdev_err(dev, "Unable to init VLANs\n");
                return err;