aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm/ibmvnic.h
diff options
context:
space:
mode:
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>2016-07-06 15:35:18 -0500
committerDavid S. Miller <davem@davemloft.net>2016-07-09 17:42:11 -0400
commit65dc689182ec5117896d876cc03405ac51427314 (patch)
treee99bb4e42e95b56d021d9098c0cb94430eca242c /drivers/net/ethernet/ibm/ibmvnic.h
parentibmvnic: simplify and improve driver probe function (diff)
downloadlinux-dev-65dc689182ec5117896d876cc03405ac51427314.tar.xz
linux-dev-65dc689182ec5117896d876cc03405ac51427314.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/ibm/ibmvnic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.h b/drivers/net/ethernet/ibm/ibmvnic.h
index 0b66a506a4e4..e82898fd518e 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.h
+++ b/drivers/net/ethernet/ibm/ibmvnic.h
@@ -1045,4 +1045,6 @@ struct ibmvnic_adapter {
u64 opt_rxba_entries_per_subcrq;
__be64 tx_rx_desc_req;
u8 map_id;
+
+ struct work_struct vnic_crq_init;
};