ibmvnic: schedule failover only if vioctl fails
authorSukadev Bhattiprolu <sukadev@linux.ibm.com>
Mon, 21 Feb 2022 21:05:45 +0000 (15:05 -0600)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Feb 2022 01:06:27 +0000 (17:06 -0800)
commit277f2bb14361790a70e4b3c649e794b75a91a597
tree546212ed964d54b3238cfe4c02feae3318bb5716
parent342b6419193c6f697fd47d9c72fcff9cafc70687
ibmvnic: schedule failover only if vioctl fails

If client is unable to initiate a failover reset via H_VIOCTL hcall, then
it should schedule a failover reset as a last resort. Otherwise, there is
no need to do a last resort.

Fixes: 334c42414729 ("ibmvnic: improve failover sysfs entry")
Reported-by: Cris Forno <cforno12@outlook.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Signed-off-by: Dany Madden <drt@linux.ibm.com>
Link: https://lore.kernel.org/r/20220221210545.115283-1-drt@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c