rtnetlink: Do not generate notifications for MTU events
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 12 Apr 2017 00:02:40 +0000 (17:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Apr 2017 17:16:32 +0000 (13:16 -0400)
commit085e1a65f04fb05941de0a071c8d70246cd03178
tree5330f915cf5f8abdb53e45cd8252b32fb0672ead
parentb6518e6a0086fc152f9a35ac5062930788f8b4bc
rtnetlink: Do not generate notifications for MTU events

Changing MTU on a link currently causes 3 messages to be sent to userspace:

[LINK]11: dummy1: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1490 qdisc noqueue state UNKNOWN group default
    link/ether f2:52:5c:6d:21:f3 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 f2:52:5c:6d:21:f3 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 f2:52:5c:6d:21:f3 brd ff:ff:ff:ff:ff:ff

Remove the messages sent for PRE_CHANGE_MTU and CHANGE_MTU netdev events.

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