Skip to content

Commit

Permalink
net: call notifiers for mtu change even if iface is not up
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Dec 7, 2012
1 parent b93196d commit e3d8fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e3d8fab

Please sign in to comment.