diff options
author | Jiri Pirko <jiri@resnulli.us> | 2012-12-02 20:16:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-07 12:22:30 -0500 |
commit | e3d8fabee3b66ce158b2603f270479b84b6e4ba7 (patch) | |
tree | b2bc9caa0205f025cb0cafc35c68589c0224463f /net/core/dev.c | |
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/core/dev.c')
-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) | |||
4971 | else | 4971 | else |
4972 | dev->mtu = new_mtu; | 4972 | dev->mtu = new_mtu; |
4973 | 4973 | ||
4974 | if (!err && dev->flags & IFF_UP) | 4974 | if (!err) |
4975 | call_netdevice_notifiers(NETDEV_CHANGEMTU, dev); | 4975 | call_netdevice_notifiers(NETDEV_CHANGEMTU, dev); |
4976 | return err; | 4976 | return err; |
4977 | } | 4977 | } |