Files
kernel/include/linux
Veaceslav Falico 1d486bfb66 net: add NETDEV_PRECHANGEMTU to notify before mtu change happens
Currently, if a device changes its mtu, first the change happens (invloving
all the side effects), and after that the NETDEV_CHANGEMTU is sent so that
other devices can catch up with the new mtu. However, if they return
NOTIFY_BAD, then the change is reverted and error returned.

This is a really long and costy operation (sometimes). To fix this, add
NETDEV_PRECHANGEMTU notification which is called prior to any change
actually happening, and if any callee returns NOTIFY_BAD - the change is
aborted. This way we're skipping all the playing with apply/revert the mtu.

CC: "David S. Miller" <davem@davemloft.net>
CC: Jiri Pirko <jiri@resnulli.us>
CC: Eric Dumazet <edumazet@google.com>
CC: Nicolas Dichtel <nicolas.dichtel@6wind.com>
CC: Cong Wang <amwang@redhat.com>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-16 17:15:41 -08:00
..
2014-01-04 20:25:19 -05:00
2013-12-03 13:10:47 +01:00
2014-01-02 03:30:35 -05:00
2013-11-08 08:59:44 -07:00
2013-10-28 13:33:58 -06:00
2013-11-15 09:32:23 +09:00
2013-11-15 09:32:21 +09:00
2013-11-09 00:16:29 -05:00
2013-11-15 22:04:17 -05:00
2013-09-29 18:27:03 -07:00
2013-10-16 18:40:57 -07:00
2013-12-29 16:34:25 -05:00
2013-11-15 09:32:23 +09:00
2013-12-11 15:52:34 +01:00
2013-12-26 13:29:35 -05:00
2013-11-13 12:09:11 +09:00
2013-11-09 00:16:19 -05:00
2013-11-09 00:16:19 -05:00
2013-10-14 17:15:48 +02:00
2014-01-13 14:29:49 -08:00
2013-10-17 00:36:06 +02:00
2013-12-31 13:58:40 -05:00
2013-12-18 19:04:50 -08:00
2013-12-06 12:37:56 -05:00
2013-12-19 19:09:38 -05:00
2014-01-16 16:22:54 -08:00
2014-01-03 20:55:58 -05:00
2013-11-14 15:16:16 +11:00
2013-10-17 15:53:09 -04:00