]> 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)
commit073235f88512507417d8a47f1bcaad6300b43086
tree0d553fbdf9967aef4da312d7217afcbfacd5022e
parent929280cf28e464bfa51eb5841d7effce52f7dd3c
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