|
@@ -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;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2248,7 +2248,7 @@ static int do_setlink(const struct sk_buff *skb,
|
|
|
|
|
|
errout:
|
|
|
if (status & DO_SETLINK_MODIFIED) {
|
|
|
- if (status & DO_SETLINK_NOTIFY)
|
|
|
+ if ((status & DO_SETLINK_NOTIFY) == DO_SETLINK_NOTIFY)
|
|
|
netdev_state_change(dev);
|
|
|
|
|
|
if (err < 0)
|
|
@@ -4279,13 +4279,17 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi
|
|
|
|
|
|
switch (event) {
|
|
|
case NETDEV_REBOOT:
|
|
|
+ case NETDEV_CHANGEMTU:
|
|
|
case NETDEV_CHANGEADDR:
|
|
|
case NETDEV_CHANGENAME:
|
|
|
case NETDEV_FEAT_CHANGE:
|
|
|
case NETDEV_BONDING_FAILOVER:
|
|
|
+ case NETDEV_POST_TYPE_CHANGE:
|
|
|
case NETDEV_NOTIFY_PEERS:
|
|
|
+ case NETDEV_CHANGEUPPER:
|
|
|
case NETDEV_RESEND_IGMP:
|
|
|
case NETDEV_CHANGEINFODATA:
|
|
|
+ case NETDEV_CHANGE_TX_QUEUE_LEN:
|
|
|
rtmsg_ifinfo_event(RTM_NEWLINK, dev, 0, rtnl_get_event(event),
|
|
|
GFP_KERNEL);
|
|
|
break;
|