]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit903066c4e129e1ccf9aaa02929f85abc260b549b
tree0b68ee6c11fd867301273509ce88528f5ab79976
parent99666668e27e8edaa3f9507f27942577e41e1f5d
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