Message ID | c0f454951cf47e2dcf4dd0fecbb8fcc41352ae8e.1496256804.git.joseph.salisbury@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index d8638b9..6b48fca 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -1582,8 +1582,14 @@ static int do_setlink(const struct sk_buff *skb, modified = 1; } - if (tb[IFLA_TXQLEN]) - dev->tx_queue_len = nla_get_u32(tb[IFLA_TXQLEN]); + if (tb[IFLA_TXQLEN]) { + unsigned long value = nla_get_u32(tb[IFLA_TXQLEN]); + + if (dev->tx_queue_len ^ value) + modified = 1; + + dev->tx_queue_len = value; + } if (tb[IFLA_OPERSTATE]) set_operstate(dev, nla_get_u8(tb[IFLA_OPERSTATE]));