]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mlxsw: spectrum: Always decrement bridge's ref count
authorIdo Schimmel <idosch@mellanox.com>
Mon, 7 Mar 2016 14:15:29 +0000 (15:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2016 16:39:15 +0000 (11:39 -0500)
commit912b1c89c5043e163f8cfa568512a131976121b2
tree19a9130c83ab5def41f7acf5542e276810191b22
parent4de13d7ed6ffdcbb34317acaa9236f121176f5f8
mlxsw: spectrum: Always decrement bridge's ref count

Since we only support one VLAN filtering bridge we need to associate a
reference count with it, so that when the last port netdev leaves it, we
would know that a different bridge can be offloaded to hardware.

When a LAG device is memeber in a bridge and port netdevs are leaving
the LAG, we should always decrement the bridge's reference count, as it's
incremented for any port in the LAG.

Fixes: 4dc236c31733 ("mlxsw: spectrum: Handle port leaving LAG while bridged")
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