rtnetlink: Do not generate notifications for POST_TYPE_CHANGE event
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 12 Apr 2017 00:02:43 +0000 (17:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Apr 2017 17:16:33 +0000 (13:16 -0400)
commitaef091ae58aab340afb6f4d6a835037e66fa56a1
treea346a171e26b975cea02a365d53b176fb4b31778
parentcd8966e75ed3c6b41a37047a904617bc44fa481f
rtnetlink: Do not generate notifications for POST_TYPE_CHANGE event

Changing the master device for a link generates many messages; the one
generated for POST_TYPE_CHANGE is redundant:

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

Remove POST_TYPE_CHANGE from the list of notifiers that generate
notifications.

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