mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 13:30:45 -05:00
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
4c99125568 ("macvlan: Support bonding events").
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
Link: https://patch.msgid.link/20250109032819.326528-2-champetier.etienne@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
676cfca2bc
commit
e79a98e68b
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user