diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-10-24 07:54:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-25 03:54:39 +0200 |
commit | eeda3fb9e132bd5f9592c4c664ba944cf1ac5b9f (patch) | |
tree | 74d63700132aacee012f4b3c0c0ed7510de9ded1 | |
parent | bonding: remove rtmsg_ifinfo called in bond_master_upper_dev_link (diff) | |
download | linux-eeda3fb9e132bd5f9592c4c664ba944cf1ac5b9f.tar.xz linux-eeda3fb9e132bd5f9592c4c664ba944cf1ac5b9f.zip |
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: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/rtnetlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index df8dba998c48..854a848842ea 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -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); |