projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b93196d
)
net: call notifiers for mtu change even if iface is not up
author
Jiri Pirko
<jiri@resnulli.us>
Mon, 3 Dec 2012 01:16:32 +0000
(
01:16
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 7 Dec 2012 17:22:30 +0000
(12:22 -0500)
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>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index
0aea3fe
..
307142a
100644
(file)
--- 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;
}