]> git.baikalelectronics.ru Git - kernel.git/commit
net: Check CHANGEUPPER notifier return value
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Dec 2015 11:12:03 +0000 (12:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 16:49:23 +0000 (11:49 -0500)
commitb7419954bb691f051b4a77890d50b70663c2aabb
treea887cd7567a12b2c87f5d9e01bacc75c461f7231
parente46743fd46e3c8eaf269bf73855332e11421d920
net: Check CHANGEUPPER notifier return value

switchdev drivers reflect the newly requested topology to hardware when
CHANGEUPPER is received, after software links were already formed.
However, the operation can fail and user will not be notified, as the
return value of the notifier is not checked.

Add this check and rollback software links if necessary.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c