]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit3b7ad5ece49fe72498b50d28253fd39daead1e14
treed1e1996a6bb675aa1a0cd4db89d4bc8567f9b225
parent06c071f68d8123bef0f152e5d2c7272920597a7e
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