From: Veaceslav Falico Date: Fri, 10 Jan 2014 15:56:25 +0000 (+0100) Subject: net: make dev_set_mtu() honor notification return code X-Git-Tag: v3.14-rc1~94^2~206 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2315dc91a5059d7da9a8b9b9daf78d695c11383e;p=pandora-kernel.git 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 CC: "David S. Miller" CC: Eric Dumazet CC: Alexander Duyck CC: Nicolas Dichtel Signed-off-by: Veaceslav Falico Reviewed-by: Jiri Pirko Signed-off-by: David S. Miller --- Reading git-diff-tree failed