ibmvnic: schedule failover only if vioctl fails
PATCH 1/1 ibmvnic: schedule failover only if vioctl fails
From: Sukadev Bhattiprolu <[email protected]>
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 <[email protected]>
Signed-off-by Sukadev Bhattiprolu <[email protected]>
Signed-off-by Dany Madden <[email protected]>
--- drivers/net/ethernet/ibm/ibmvnic.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/net/ethernet/ibm/ibmvnic.c +5 -1
@@ -5917,10 +5917,14 @@ static ssize_t failover_store(struct device *dev, struct device_attribute *attr, be64_to_cpu(session_token)); rc =plpar_hcall_norets (H_VIOCTL , adapter->vdev->unit_address,H_SESSION_ERR_DETECTED , session_token,0 ,0 ); -if (rc) +if (rc) {netdev_err (netdev,"H_VIOCTL initiated failover failed, rc %ld\n" , rc); + goto last_resort; + } + +return count; last_resort:netdev_dbg (netdev,"Trying to send CRQ_CMD, the last resort\n" );
Signature · 1 line
2.26.2
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <[email protected]>:
Quoted 6 lines · On Mon, 21 Feb 2022 15:05:45 -0600 you wrote:
From: Sukadev Bhattiprolu <[email protected]>
If client is unable to initiate a failover reset via
H_VIOCTLhcall, then it should schedule a failover reset as a last resort. Otherwise, there is no need to do a last resort.
Quoted 6 lines
Fixes 334c42414729 ("ibmvnic: improve failover sysfs entry")Reported-by Cris Forno <[email protected]>Signed-off-by Sukadev Bhattiprolu <[email protected]>Signed-off-by Dany Madden <[email protected]>[...]
Here is the summary with links:
- [net] ibmvnic: schedule failover only if vioctl fails
https://git.kernel.org/netdev/net/c/277f2bb14361
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html