diff options
author | 2023-07-19 13:01:31 +0200 | |
---|---|---|
committer | 2023-07-21 08:54:06 +0100 | |
commit | 4560cf408ecae4824a2bbdcef83cf91b2db5d268 (patch) | |
tree | 9ec84daf7b7f12ae69c58c4ee3670173a3b6c2cd /include | |
parent | mlxsw: spectrum_router: Replay IP NETDEV_UP on device enslavement (diff) | |
download | wireguard-linux-4560cf408ecae4824a2bbdcef83cf91b2db5d268.tar.xz wireguard-linux-4560cf408ecae4824a2bbdcef83cf91b2db5d268.zip |
mlxsw: spectrum_router: Replay IP NETDEV_UP on device deslavement
When a netdevice is removed from a bridge or a LAG, and it has an IP
address, it should join the router and gain a RIF. Do that by replaying
address addition event on the netdevice.
When handling deslavement of LAG or its upper from a bridge device, the
replay should be done after all the lowers of the LAG have left the bridge.
Thus these scenarios are handled by passing replay_deslavement of false,
and by invoking, after the lowers have been processed, a new helper,
mlxsw_sp_netdevice_post_lag_event(), which does the per-LAG / -upper
handling, and in particular invokes the replay.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions