diff options
| author | Etienne Champetier <[email protected]> | 2025-01-09 03:28:18 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-01-11 02:10:24 +0000 |
| commit | e79a98e68b96a94d6d997ddbfb92e3969bfa2dfb (patch) | |
| tree | ee781d9c030a91f30e77f4189a618829006650fe /drivers/net/ipvlan/ipvlan_main.c | |
| parent | Merge branch 'net-stmmac-clean-up-and-fix-eee-implementation' (diff) | |
| download | kernel-e79a98e68b96a94d6d997ddbfb92e3969bfa2dfb.tar.gz kernel-e79a98e68b96a94d6d997ddbfb92e3969bfa2dfb.zip | |
ipvlan: Support bonding events
This allows ipvlan to function properly on top of
bonds using active-backup mode.
This was implemented for macvlan in 2014 in commit
4c9912556867 ("macvlan: Support bonding events").
Signed-off-by: Etienne Champetier <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ipvlan/ipvlan_main.c')
| -rw-r--r-- | drivers/net/ipvlan/ipvlan_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index ee2c3cf4df36..da3a97a65507 100644 --- a/drivers/net/ipvlan/ipvlan_main.c +++ b/drivers/net/ipvlan/ipvlan_main.c @@ -799,6 +799,12 @@ static int ipvlan_device_event(struct notifier_block *unused, case NETDEV_PRE_TYPE_CHANGE: /* Forbid underlying device to change its type. */ return NOTIFY_BAD; + + case NETDEV_NOTIFY_PEERS: + case NETDEV_BONDING_FAILOVER: + case NETDEV_RESEND_IGMP: + list_for_each_entry(ipvlan, &port->ipvlans, pnode) + call_netdevice_notifiers(event, ipvlan->dev); } return NOTIFY_DONE; } |
