Skip to content

Commit e79a98e

Browse files
champtarkuba-moo
authored andcommitted
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 4c99125 ("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]>
1 parent 676cfca commit e79a98e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ipvlan/ipvlan_main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,12 @@ static int ipvlan_device_event(struct notifier_block *unused,
799799
case NETDEV_PRE_TYPE_CHANGE:
800800
/* Forbid underlying device to change its type. */
801801
return NOTIFY_BAD;
802+
803+
case NETDEV_NOTIFY_PEERS:
804+
case NETDEV_BONDING_FAILOVER:
805+
case NETDEV_RESEND_IGMP:
806+
list_for_each_entry(ipvlan, &port->ipvlans, pnode)
807+
call_netdevice_notifiers(event, ipvlan->dev);
802808
}
803809
return NOTIFY_DONE;
804810
}

0 commit comments

Comments
 (0)