summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2012-12-03 05:16:32 +0400
committerDavid S. Miller <davem@davemloft.net>2012-12-07 21:22:30 +0400
commite3d8fabee3b66ce158b2603f270479b84b6e4ba7 (patch)
treeb2bc9caa0205f025cb0cafc35c68589c0224463f /net/core
parentb93196dc5af7729ff7cc50d3d322ab1a364aa14f (diff)
downloadlinux-e3d8fabee3b66ce158b2603f270479b84b6e4ba7.tar.xz
net: call notifiers for mtu change even if iface is not up
Do the same thing as in set mac. Call notifiers every time. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 0aea3fee7f6d..307142a702d5 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4971,7 +4971,7 @@ int dev_set_mtu(struct net_device *dev, int new_mtu)
else
dev->mtu = new_mtu;
- if (!err && dev->flags & IFF_UP)
+ if (!err)
call_netdevice_notifiers(NETDEV_CHANGEMTU, dev);
return err;
}