mlxsw: spectrum: Use correct PVID value when removing VLANs
authorIdo Schimmel <idosch@mellanox.com>
Thu, 19 Nov 2015 11:27:38 +0000 (12:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 16:06:02 +0000 (11:06 -0500)
commit06c071f68d8123bef0f152e5d2c7272920597a7e
tree0b68ee6c11fd867301273509ce88528f5ab79976
parentf99bf205dab026ef434520198af2fcb7dae0efdb
mlxsw: spectrum: Use correct PVID value when removing VLANs

When removing a range of VLANs in which PVID is a member we should use
the correct PVID value instead of some VLAN in the range.

Also, change two print statements to use 'dev' instead of
'mlxsw_sp_port->dev', as it's already used in other print statements in
the function.

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