mlxsw: spectrum: Make VLAN deletion function symmetric
authorIdo Schimmel <idosch@mellanox.com>
Wed, 24 Aug 2016 10:00:24 +0000 (12:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2016 16:41:12 +0000 (09:41 -0700)
commitf7a8f6cec38a549ffcc559a9eb14cab539100d97
tree035a6ae063bcd8fe6892edb2bef22eb5ae14aa52
parent1803e0fb7ef9534154e6a1abf77bc2ca352f72e1
mlxsw: spectrum: Make VLAN deletion function symmetric

Commit 05978481e77e ("mlxsw: spectrum: Create PVID vPort before
registering netdevice") removed __mlxsw_sp_port_vlans_del() from the
init sequence of the driver, which forced it to be non-symmetric with
regards to __mlxsw_sp_port_vlans_add().

Make both functions symmetric as the constraint no longer exists.

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_switchdev.c