diff options
author | Ido Schimmel <idosch@mellanox.com> | 2016-06-20 21:04:19 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-21 09:02:51 (GMT) |
commit | fe3f6d144a843c9845d2eccb78fe72d1bebae0e9 (patch) | |
tree | 5fbac0a6879afd08bded7cd3fad9e4469d44a32f /kernel | |
parent | 56918b6b0a66e449b3e11adb3e1c93849964d429 (diff) | |
download | linux-fe3f6d144a843c9845d2eccb78fe72d1bebae0e9.tar.xz |
mlxsw: spectrum: Refactor FDB flushing logic
FDB entries are learned using {Port / LAG ID, FID} and therefore should
be flushed whenever a port (vPort) leaves its FID (vFID).
However, when the bridge port is a LAG device (or a VLAN device on top),
then FDB flushing is conditional. Ports removed from such LAG
configurations must not trigger flushing, as other ports might still be
members in the LAG and therefore the bridge port is still active.
The decision whether to flush or not was previously computed in the
netdevice notification block, but in order to flush the entries when a
port leaves its FID this decision should be computed there.
Strip the notification block from this logic and instead move it to one
FDB flushing function that is invoked from both the FID / vFID leave
functions.
When port isn't member in LAG, FDB flushing should always occur.
Otherwise, it should occur only when the last port (vPort) member in the
LAG leaves the FID (vFID).
This will allow us - in the next patch - to simplify the cleanup code
paths that are hit whenever the topology above the port netdevs 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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions