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>
This commit is contained in:
parent
b93196dc5a
commit
e3d8fabee3
1 changed files with 1 additions and 1 deletions
|
@ -4971,7 +4971,7 @@ int dev_set_mtu(struct net_device *dev, int new_mtu)
|
||||||
else
|
else
|
||||||
dev->mtu = new_mtu;
|
dev->mtu = new_mtu;
|
||||||
|
|
||||||
if (!err && dev->flags & IFF_UP)
|
if (!err)
|
||||||
call_netdevice_notifiers(NETDEV_CHANGEMTU, dev);
|
call_netdevice_notifiers(NETDEV_CHANGEMTU, dev);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue