diff options
| author | Avinash Dayanand <avinash.dayanand@intel.com> | 2018-01-23 08:50:55 -0800 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-02-14 09:43:21 -0800 |
| commit | 836ce5ed729df825ae472778978a09e5d290f543 (patch) | |
| tree | 01dbc81e99ed3b6010b1d3de7c32e6ae31aee359 /drivers/net/ethernet/intel/i40evf/i40evf_main.c | |
| parent | Merge branch 'net-dev-Make-protocol-ptr-dependent-on-CONFIG' (diff) | |
| download | linux-836ce5ed729df825ae472778978a09e5d290f543.tar.gz linux-836ce5ed729df825ae472778978a09e5d290f543.zip | |
i40evf: Fix link up issue when queues are disabled
One of the previous patch fixes the link up issue by ignoring it if
i40evf is not in __I40EVF_RUNNING state. However this doesn't fix the
race condition when queues are disabled esp for ADq on VF. Hence check
if all queues are enabled before starting all queues.
Signed-off-by: Avinash Dayanand <avinash.dayanand@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf/i40evf_main.c')
| -rw-r--r-- | drivers/net/ethernet/intel/i40evf/i40evf_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c index 34fd6c553879..0776b07477a2 100644 --- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c +++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c @@ -1913,6 +1913,7 @@ continue_reset: i40evf_free_all_rx_resources(adapter); i40evf_free_all_tx_resources(adapter); + adapter->flags |= I40EVF_FLAG_QUEUES_DISABLED; /* kill and reinit the admin queue */ i40evf_shutdown_adminq(hw); adapter->current_op = VIRTCHNL_OP_UNKNOWN; |
