diff options
author | 2014-01-10 16:56:25 +0100 | |
---|---|---|
committer | 2014-01-13 15:19:26 -0800 | |
commit | 2315dc91a5059d7da9a8b9b9daf78d695c11383e (patch) | |
tree | 751234af7ab27daebdf18cb4b08ef8247cabb52e /drivers/net/macvlan.c | |
parent | packet: doc: describe PACKET_MMAP with one packet socket for rx and tx (diff) | |
download | linux-dev-2315dc91a5059d7da9a8b9b9daf78d695c11383e.tar.xz linux-dev-2315dc91a5059d7da9a8b9b9daf78d695c11383e.zip |
net: make dev_set_mtu() honor notification return code
Currently, after changing the MTU for a device, dev_set_mtu() calls
NETDEV_CHANGEMTU notification, however doesn't verify it's return code -
which can be NOTIFY_BAD - i.e. some of the net notifier blocks refused this
change, and continues nevertheless.
To fix this, verify the return code, and if it's an error - then revert the
MTU to the original one, notify again and pass the error code.
CC: Jiri Pirko <jiri@resnulli.us>
CC: "David S. Miller" <davem@davemloft.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Alexander Duyck <alexander.h.duyck@intel.com>
CC: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
0 files changed, 0 insertions, 0 deletions