diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-10-15 06:13:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-16 15:48:45 -0400 |
commit | e6e6659446c87057aede26a39d9f16b19001716f (patch) | |
tree | 595501a561d71ccdc37fe5bbbb8037a807d422d6 | |
parent | ebdcf0450b020748c2dab6bfe44a5ac3c5159fb0 (diff) |
rtnetlink: bring NETDEV_POST_TYPE_CHANGE event process back in rtnetlink_event
As I said in patch 'rtnetlink: bring NETDEV_CHANGEMTU event process back
in rtnetlink_event', removing NETDEV_POST_TYPE_CHANGE event was not the
right fix for the redundant notifications issue.
So bring this event process back to rtnetlink_event and the old redundant
notifications issue would be fixed in the later patch 'rtnetlink: check
DO_SETLINK_NOTIFY correctly in do_setlink'.
Fixes: aef091ae58aa ("rtnetlink: Do not generate notifications for POST_TYPE_CHANGE event")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: David Ahern <dsahern@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 bf473604f33d..8e44fd597f46 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -4284,6 +4284,7 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi | |||
4284 | case NETDEV_CHANGENAME: | 4284 | case NETDEV_CHANGENAME: |
4285 | case NETDEV_FEAT_CHANGE: | 4285 | case NETDEV_FEAT_CHANGE: |
4286 | case NETDEV_BONDING_FAILOVER: | 4286 | case NETDEV_BONDING_FAILOVER: |
4287 | case NETDEV_POST_TYPE_CHANGE: | ||
4287 | case NETDEV_NOTIFY_PEERS: | 4288 | case NETDEV_NOTIFY_PEERS: |
4288 | case NETDEV_RESEND_IGMP: | 4289 | case NETDEV_RESEND_IGMP: |
4289 | case NETDEV_CHANGEINFODATA: | 4290 | case NETDEV_CHANGEINFODATA: |