diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-10-15 18:13:41 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-16 20:48:44 +0100 |
commit | 8a212589fe0e45f26c549dfa271a157ca8eea1ac (patch) | |
tree | fce3eaba2c663065959dbae25671ddc1cd9b76cd /block/blk-mq-sysfs.c | |
parent | 8f718fa6bb668836dce3ca1ab8d29ce4b029a4a7 (diff) | |
download | op-kernel-dev-8a212589fe0e45f26c549dfa271a157ca8eea1ac.zip op-kernel-dev-8a212589fe0e45f26c549dfa271a157ca8eea1ac.tar.gz |
rtnetlink: bring NETDEV_CHANGEMTU event process back in rtnetlink_event
Commit 085e1a65f04f ("rtnetlink: Do not generate notifications for MTU
events") tried to fix the redundant notifications issue when ip link
set mtu by removing NETDEV_CHANGEMTU event process in rtnetlink_event.
But it also resulted in no notification generated when dev's mtu is
changed via other methods, like:
'ifconfig eth1 mtu 1400' or 'echo 1400 > /sys/class/net/eth1/mtu'
It would cause users not to be notified by this change.
This patch is to fix it by bringing NETDEV_CHANGEMTU event back into
rtnetlink_event, and the redundant notifications issue will be fixed
in the later patch 'rtnetlink: check DO_SETLINK_NOTIFY correctly in
do_setlink'.
Fixes: 085e1a65f04f ("rtnetlink: Do not generate notifications for MTU events")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/blk-mq-sysfs.c')
0 files changed, 0 insertions, 0 deletions