aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2016-06-20 23:04:20 +0200
committerDavid S. Miller <davem@davemloft.net>2016-06-21 05:02:51 -0400
commit1c800759078d400a02ed4ed1655672ea5fdcfd66 (patch)
treed44ad9fd9bcb11fb163c4868d21b34669f9e09a5 /net/tipc
parentmlxsw: spectrum: Refactor FDB flushing logic (diff)
downloadlinux-dev-1c800759078d400a02ed4ed1655672ea5fdcfd66.tar.xz
linux-dev-1c800759078d400a02ed4ed1655672ea5fdcfd66.zip
mlxsw: spectrum: Free resources upon vPort destruction
There are situations in which a vPort is destroyed while still holding references to device's resources such as FIDs and FDB records. This can happen, for example, when a VLAN device is deleted while still being bridged. Instead of trying to make sure vPort destruction is invoked when it no longer uses device's resources, just free them upon destruction. This simplifies the code, as we no longer need to take different situations into account when events are received - cleanup is taken care of in one place. 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>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions