Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eeda3fb9 authored by Xin Long's avatar Xin Long Committed by David S. Miller
Browse files

rtnetlink: bring NETDEV_CHANGELOWERSTATE event process back to rtnetlink_event



This patch is to bring NETDEV_CHANGELOWERSTATE event process back
to rtnetlink_event so that bonding could use it instead of calling
rtmsg_ifinfo to send a notification to userspace after netdev lower
state is changed in the later patch.

Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4597efe3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4385,6 +4385,7 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi
	case NETDEV_CHANGEUPPER:
	case NETDEV_RESEND_IGMP:
	case NETDEV_CHANGEINFODATA:
	case NETDEV_CHANGELOWERSTATE:
	case NETDEV_CHANGE_TX_QUEUE_LEN:
		rtmsg_ifinfo_event(RTM_NEWLINK, dev, 0, rtnl_get_event(event),
				   GFP_KERNEL, NULL);