diff options
author | Jiri Pirko | 2012-12-03 01:16:32 +0000 |
---|---|---|
committer | David S. Miller | 2012-12-07 12:22:30 -0500 |
commit | e3d8fabee3b66ce158b2603f270479b84b6e4ba7 (patch) | |
tree | b2bc9caa0205f025cb0cafc35c68589c0224463f /net | |
parent | b93196dc5af7729ff7cc50d3d322ab1a364aa14f (diff) |
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')
-rw-r--r-- | net/core/dev.c | 2 |
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; } |