]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_switchdev: Don't batch VLAN operations
authorIdo Schimmel <idosch@mellanox.com>
Tue, 16 May 2017 17:38:31 +0000 (19:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 18:06:54 +0000 (14:06 -0400)
commitfe277e18e0182228c839e66cc90e6e698e0312f3
tree0d553fbdf9967aef4da312d7217afcbfacd5022e
parent41ec7c1f88da9d5ff15b857842f8161b8f2ca507
mlxsw: spectrum_switchdev: Don't batch VLAN operations

switchdev's VLAN object has the ability to describe a range of VLAN IDs,
but this is only used when VLAN operations are done using the SELF flag,
which is something we would like to remove as it allows one to bypass
the bridge driver.

Do VLAN operations on a per-VLAN basis, thereby simplifying the code and
preparing it for refactoring in a follow-up patchset.

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.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c