netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next] net: call notifiers for mtu change even if iface is not up
@ 2012-12-03 11:16 Jiri Pirko
  2012-12-03 14:18 ` Neil Horman
  0 siblings, 1 reply; 7+ messages in thread
From: Jiri Pirko @ 2012-12-03 11:16 UTC (permalink / raw)
  To: netdev; +Cc: davem, edumazet, bhutchings, psimerda

Do the same thing as in set mac. Call notifiers every time.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index 2f94df2..0685a72 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;
 }
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-12-07 17:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03 11:16 [patch net-next] net: call notifiers for mtu change even if iface is not up Jiri Pirko
2012-12-03 14:18 ` Neil Horman
2012-12-03 14:22   ` Jiri Pirko
2012-12-03 15:22     ` Neil Horman
2012-12-07 12:29       ` Jiri Pirko
2012-12-07 15:07         ` Neil Horman
2012-12-07 17:23           ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).