ibmvnic: Fix passive VNIC server login process
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 6 Jul 2016 20:35:18 +0000 (15:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jul 2016 21:42:11 +0000 (17:42 -0400)
commit65dc689182ec5117896d876cc03405ac51427314
treee99bb4e42e95b56d021d9098c0cb94430eca242c
parentea22d51a7831b062978fcf07c3c5ac7ecbb6cbeb
ibmvnic: Fix passive VNIC server login process

In some cases, if there is no VNIC server available during the driver
probe, the driver should wait until it receives an initialization
request from the VNIC Server to start the login process. Recent testing
has show that this is incorrectly handled in the current driver.

The proposed solution handles this initialization request by scheduling
a task in the shared workqueue that completes the login process and
registers the net device.

Signed-off-by: Thomas Falcon <tlfalcon@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