WSL2-Linux-Kernel/drivers/net/ethernet/ibm
Sukadev Bhattiprolu 4f408e1fa6 ibmvnic: retry reset if there are no other resets
Normally, if a reset fails due to failover or other communication error
there is another reset (eg: FAILOVER) in the queue and we would process
that reset. But if we are unable to communicate with PHYP or VIOS after
H_FREE_CRQ, there would be no other resets in the queue and the adapter
would be in an undefined state even though it was in the OPEN state
earlier. While starting the reset we set the carrier to off state so
we won't even get the timeout resets.

If the last queued reset fails, retry it as a hard reset (after the
usual 60 second settling time).

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Reviewed-by: Dany Madden <drt@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-07-01 13:11:12 -07:00
..
ehea ehea: fix error return code in ehea_restart_qps() 2021-05-28 18:12:19 -07:00
emac net: ibm: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ibmveth.c ibmveth: Set CHECKSUM_PARTIAL if NULL TCP CSUM. 2021-06-23 12:54:11 -07:00
ibmveth.h net/ethtool: Introduce link_ksettings API for virtual network devices 2020-02-29 21:48:55 -08:00
ibmvnic.c ibmvnic: retry reset if there are no other resets 2021-07-01 13:11:12 -07:00
ibmvnic.h ibmvnic: Allow device probe if the device is not ready at boot 2021-06-10 14:35:07 -07:00