]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Unify setting of HW VLAN filters
authorIdo Schimmel <idosch@mellanox.com>
Thu, 19 Nov 2015 11:27:39 +0000 (12:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 16:06:03 +0000 (11:06 -0500)
commit89061adff432216d5e0f40583b45ec83ddba046e
treed1e1996a6bb675aa1a0cd4db89d4bc8567f9b225
parent903066c4e129e1ccf9aaa02929f85abc260b549b
mlxsw: spectrum: Unify setting of HW VLAN filters

When adding or deleting VLANs from a bridged port, HW VLAN filters must be
set accordingly. Instead of having the same code in both add and delete
functions, just wrap it in a function and call it with the appropriate
parameters.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
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