]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: improve failover sysfs entry
authorLijun Pan <lijunp213@gmail.com>
Tue, 13 Apr 2021 08:31:44 +0000 (03:31 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2021 21:48:44 +0000 (14:48 -0700)
commitf0a20d4caaebbf862c25209c50ccfa92393d6b38
treef036b5d61b6a426cbefb18f7c56d3c995d476fbc
parent0ff241f80f936acbc134db76702e0908a627cc3f
ibmvnic: improve failover sysfs entry

The current implementation relies on H_IOCTL call to issue a
H_SESSION_ERR_DETECTED command to let the hypervisor to send a failover
signal. However, it may not work if there is no backup device or if
the vnic is already in error state,
e.g., "ibmvnic 30000003 env3: rx buffer returned with rc 6".
Add a last resort, that is to schedule a failover reset via CRQ command.

Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c