Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c89a9e00 authored by Mitch Williams's avatar Mitch Williams Committed by Jeff Kirsher
Browse files

i40evf: don't shut down admin queue on error



If the driver encounters an error while communicating with the PF
driver,  don't just shut down the admin queue unconditionally. The PF
may be delayed, and shutting down the admin queue causes it to fail
completely. If this happens, the VF will never complete initialization.

Change-ID: I6192e9d8caeefb738428c3597fa2f54fa400ce7f
Signed-off-by: default avatarMitch Williams <mitch.a.williams@intel.com>
Signed-off-by: default avatarCatherine Sullivan <catherine.sullivan@intel.com>
Tested-by: default avatarSibai Li <sibai.li@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 0b67584f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2133,8 +2133,6 @@ static void i40evf_init_task(struct work_struct *work)
	kfree(adapter->vf_res);
	adapter->vf_res = NULL;
err:
	if (hw->aq.asq.count)
		i40evf_shutdown_adminq(hw); /* ignore error */
	/* Things went into the weeds, so try again later */
	if (++adapter->aq_wait_count > I40EVF_AQ_MAX_ERR) {
		dev_err(&pdev->dev, "Failed to communicate with PF; giving up.\n");