aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorVeaceslav Falico <[email protected]>2014-01-10 16:56:25 +0100
committerDavid S. Miller <[email protected]>2014-01-13 15:19:26 -0800
commit2315dc91a5059d7da9a8b9b9daf78d695c11383e (patch)
tree751234af7ab27daebdf18cb4b08ef8247cabb52e /scripts/patch-kernel
parent7e11daa7c19ec319fa4b750fd249a18957f17797 (diff)
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 <[email protected]> CC: "David S. Miller" <[email protected]> CC: Eric Dumazet <[email protected]> CC: Alexander Duyck <[email protected]> CC: Nicolas Dichtel <[email protected]> Signed-off-by: Veaceslav Falico <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions