]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76b1fdf650e4f1a0dfdbef5e999ca1234b601fe0
tree035a6ae063bcd8fe6892edb2bef22eb5ae14aa52
parentd6efbc27a98a566a3c6ad406ce65e6195c50f456
mlxsw: spectrum: Make VLAN deletion function symmetric

Commit e982d398f80e ("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