]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Don't take multiple references on a FID
authorIdo Schimmel <idosch@mellanox.com>
Thu, 1 Sep 2016 08:37:44 +0000 (10:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 16:44:56 +0000 (09:44 -0700)
commit6034270024e04559173d80088015b1aa64d23da2
tree74d834716cb0a157e76b2a0bb6a39cf2cc6a92a4
parent2f9be7c67ae678bc7ed081d7f651e8284904719c
mlxsw: spectrum: Don't take multiple references on a FID

In commit c21032568f5e ("mlxsw: spectrum: Use per-FID struct for the
VLAN-aware bridge") I added a per-FID struct, which member ports can
take a reference on upon VLAN membership configuration.

However, sometimes only the VLAN flags (e.g. egress untagged) are
toggled without changing the VLAN membership. In these cases we
shouldn't take another reference on the FID.

Fixes: c21032568f5e ("mlxsw: spectrum: Use per-FID struct for the VLAN-aware bridge")
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