From: Xin Long Date: Sun, 15 Oct 2017 10:13:46 +0000 (+0800) Subject: rtnetlink: do not set notification for tx_queue_len in do_setlink X-Git-Tag: Ubuntu-5.13.0-19.19~12373^2~39^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2d7f669b42a97022c8c2b6cd86f3990be5fcd1bc;p=mirror_ubuntu-jammy-kernel.git 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 Acked-by: David Ahern Signed-off-by: David S. Miller --- 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; } }