diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/rtnetlink.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index f0493e3b7471..5bbaf74bf457 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -1611,8 +1611,14 @@ static int do_setlink(const struct sk_buff *skb, | |||
1611 | modified = 1; | 1611 | modified = 1; |
1612 | } | 1612 | } |
1613 | 1613 | ||
1614 | if (tb[IFLA_TXQLEN]) | 1614 | if (tb[IFLA_TXQLEN]) { |
1615 | dev->tx_queue_len = nla_get_u32(tb[IFLA_TXQLEN]); | 1615 | unsigned long value = nla_get_u32(tb[IFLA_TXQLEN]); |
1616 | |||
1617 | if (dev->tx_queue_len ^ value) | ||
1618 | modified = 1; | ||
1619 | |||
1620 | dev->tx_queue_len = value; | ||
1621 | } | ||
1616 | 1622 | ||
1617 | if (tb[IFLA_OPERSTATE]) | 1623 | if (tb[IFLA_OPERSTATE]) |
1618 | set_operstate(dev, nla_get_u8(tb[IFLA_OPERSTATE])); | 1624 | set_operstate(dev, nla_get_u8(tb[IFLA_OPERSTATE])); |