]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: Check CHANGEUPPER notifier return value
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Dec 2015 11:12:03 +0000 (12:12 +0100)
committerBrian Maly <brian.maly@oracle.com>
Tue, 20 Nov 2018 22:09:46 +0000 (17:09 -0500)
commit168d38c5e1371eb28a31de9834eb9b99344e8ea1
tree18337b1ac636e5a6b4f3d5e4437a38b832b7b6bb
parentd365b4aa7120e245f822d7a76a3623f5a4bea67a
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>
(cherry picked from commit b03804e7c3ad41c265c0ca21ddb306b252b4f99f)
Orabug: 28122104
Signed-off-by: Vijay Balakrishna <vijay.balakrishna@oracle.com>
Reviewed-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/core/dev.c