rtnetlink: Do not generate notifications for CHANGEADDR event
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 12 Apr 2017 00:02:42 +0000 (17:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Apr 2017 17:16:33 +0000 (13:16 -0400)
Changing hardware address generates redundant messages:

[LINK]11: dummy1: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
    link/ether 02:02:02:02:02:02 brd ff:ff:ff:ff:ff:ff

[LINK]11: dummy1: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
    link/ether 02:02:02:02:02:02 brd ff:ff:ff:ff:ff:ff

Do not send a notification for the CHANGEADDR notifier.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c

index 58722bf10d504911f3b8fccf351dda5af7033440..574f9b79919aad05a7d16a3fafb58940f9d640f0 100644 (file)
@@ -4117,7 +4117,6 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi
 
        switch (event) {
        case NETDEV_REBOOT:
-       case NETDEV_CHANGEADDR:
        case NETDEV_CHANGENAME:
        case NETDEV_FEAT_CHANGE:
        case NETDEV_BONDING_FAILOVER: