mlxsw: spectrum_switchdev: Don't batch STP operations
authorIdo Schimmel <idosch@mellanox.com>
Tue, 16 May 2017 17:38:32 +0000 (19:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 18:06:54 +0000 (14:06 -0400)
commit45bfe6b433e0b8c2528784360dbd390ffaea3c70
treeff16af5df36e86ebddfb5465c46f16ecdfbba0a7
parentfe9ccc785de5f8d0cb1b6113a0da387dfd8bf38c
mlxsw: spectrum_switchdev: Don't batch STP operations

Simplify the code by using the common function that sets an STP state
for a Port-VLAN and remove the existing one that tries to batch it for
several VLANs.

This will help us in a follow-up patchset to introduce a unified
infrastructure for bridge ports, regardless if the bridge is VLAN-aware
or not.

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