]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: retry reset if there are no other resets
authorSukadev Bhattiprolu <sukadev@linux.ibm.com>
Wed, 30 Jun 2021 18:36:17 +0000 (14:36 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:11:12 +0000 (13:11 -0700)
commitf8de8f17f706f85954f6981b30439e3e339b58e2
tree77ece92eaa994efa5a8c38a8609da5bef1930137
parent0eddd3ec73322b63a2729e80579e46fecd2bb05f
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>
drivers/net/ethernet/ibm/ibmvnic.c