From: Jiri Pirko Date: Mon, 3 Dec 2012 01:16:32 +0000 (+0000) Subject: net: call notifiers for mtu change even if iface is not up X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3d8fabee3b66ce158b2603f270479b84b6e4ba7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Neil Horman Signed-off-by: David S. Miller --- 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; }