]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: improve ibmvnic_init and ibmvnic_reset_init
authorLijun Pan <ljp@linux.ibm.com>
Wed, 19 Aug 2020 22:52:24 +0000 (17:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 23:11:33 +0000 (16:11 -0700)
commit6f4229ced7929711e85382569af3e6049d2eced1
tree7dcb1568dfe2ddaa7b510c513568c5a09d79eb5c
parent793387d46eec8655c4660b214567032cb52b4c50
ibmvnic: improve ibmvnic_init and ibmvnic_reset_init

When H_SEND_CRQ command returns with H_CLOSED, it means the
server's CRQ is not ready yet. Instead of resetting immediately,
we wait for the server to launch passive init.
ibmvnic_init() and ibmvnic_reset_init() should also return the
error code from ibmvnic_send_crq_init() call.

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