]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ibmvnic: Fix failover error path for non-fatal resets
authorJohn Allen <jallen@linux.vnet.ibm.com>
Thu, 26 Oct 2017 21:24:15 +0000 (16:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 15:23:58 +0000 (00:23 +0900)
commit2a1bf51111975846f412f47449edefdf6fa17ee4
tree50ef921d7833a996a9690f7f30ad7521e9a551e7
parentc26eba03e4073bd32ef6c0ea2ba2a3ff5eed11da
ibmvnic: Fix failover error path for non-fatal resets

For all non-fatal reset conditions, the hypervisor will send a failover when
we attempt to initialize the crq and the vnic client is expected to handle
that failover instead of the existing non-fatal reset. To handle this, we
need to return from init with a return code that indicates that we have hit
this case.

Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h