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

We no longer batch VLAN operations, so there's no need to set the
learning state for a range of VLANs.

Use a common function to set the learning state for a Port-VLAN, thereby
making the code saner more receptive for upcoming changes.

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