Skip to content

Commit f8fdb95

Browse files
committed
Merge: ipvlan: Add handling of dev up/down and bonding events
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6212 JIRA: https://issues.redhat.com/browse/RHEL-73836 Signed-off-by: Hangbin Liu <haliu@redhat.com> Approved-by: Xin Long <lxin@redhat.com> Approved-by: Antoine Tenart <atenart@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Patrick Talbert <ptalbert@redhat.com>
2 parents 4490163 + c260389 commit f8fdb95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/net/ipvlan/ipvlan_main.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,8 @@ static int ipvlan_device_event(struct notifier_block *unused,
735735
port = ipvlan_port_get_rtnl(dev);
736736

737737
switch (event) {
738+
case NETDEV_UP:
739+
case NETDEV_DOWN:
738740
case NETDEV_CHANGE:
739741
list_for_each_entry(ipvlan, &port->ipvlans, pnode)
740742
netif_stacked_transfer_operstate(ipvlan->phy_dev,
@@ -797,6 +799,12 @@ static int ipvlan_device_event(struct notifier_block *unused,
797799
case NETDEV_PRE_TYPE_CHANGE:
798800
/* Forbid underlying device to change its type. */
799801
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);
800808
}
801809
return NOTIFY_DONE;
802810
}

0 commit comments

Comments
 (0)