Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3d8fabe authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

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: default avatarJiri Pirko <jiri@resnulli.us>
Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b93196dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}