diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-10-15 12:13:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-16 21:48:45 +0200 |
commit | 2d7f669b42a97022c8c2b6cd86f3990be5fcd1bc (patch) | |
tree | 4b80407f2aeec8fe39378ac2d39e31488726af38 /net/core/rtnetlink.c | |
parent | rtnetlink: check DO_SETLINK_NOTIFY correctly in do_setlink (diff) | |
download | linux-2d7f669b42a97022c8c2b6cd86f3990be5fcd1bc.tar.xz linux-2d7f669b42a97022c8c2b6cd86f3990be5fcd1bc.zip |
rtnetlink: do not set notification for tx_queue_len in do_setlink
NETDEV_CHANGE_TX_QUEUE_LEN event process in rtnetlink_event would
send a notification for userspace and tx_queue_len's setting in
do_setlink would trigger NETDEV_CHANGE_TX_QUEUE_LEN.
So it shouldn't set DO_SETLINK_NOTIFY status for this change to
send a notification any more.
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>
Diffstat (limited to '')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 3e98fb557598..a6bcf86ce471 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -2093,7 +2093,7 @@ static int do_setlink(const struct sk_buff *skb, dev->tx_queue_len = orig_len; goto errout; } - status |= DO_SETLINK_NOTIFY; + status |= DO_SETLINK_MODIFIED; } } |