Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d7f669b authored by Xin Long's avatar Xin Long Committed by David S. Miller
Browse files

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: default avatarXin Long <lucien.xin@gmail.com>
Acked-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 64ff90cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}