aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2014-04-23 00:50:11 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-06-05 05:20:19 -0400
commit263fc48f97f603c348e44ed1f06f06320beed662 (patch)
tree4f8e6a911aea09817064f831067d7932a420ee30
parentd732a18445071fea4e062c3d66e2fc21f1bd1290 (diff)
i40e: notify VF of all types of resets
Currently, the PF driver only notifies the VFs for PF reset events. Instead, notify the VFs for all types of resets, so they can attempt a graceful reinit. Change-ID: I03eb7afde25727198ef620f8b4e78bb667a11370 Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index cf67cf45a049..0f9ccc7c8db5 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -4412,6 +4412,9 @@ void i40e_do_reset(struct i40e_pf *pf, u32 reset_flags)
4412 4412
4413 WARN_ON(in_interrupt()); 4413 WARN_ON(in_interrupt());
4414 4414
4415 if (i40e_check_asq_alive(&pf->hw))
4416 i40e_vc_notify_reset(pf);
4417
4415 /* do the biggest reset indicated */ 4418 /* do the biggest reset indicated */
4416 if (reset_flags & (1 << __I40E_GLOBAL_RESET_REQUESTED)) { 4419 if (reset_flags & (1 << __I40E_GLOBAL_RESET_REQUESTED)) {
4417 4420
@@ -5328,9 +5331,6 @@ static int i40e_prep_for_reset(struct i40e_pf *pf)
5328 5331
5329 dev_dbg(&pf->pdev->dev, "Tearing down internal switch for reset\n"); 5332 dev_dbg(&pf->pdev->dev, "Tearing down internal switch for reset\n");
5330 5333
5331 if (i40e_check_asq_alive(hw))
5332 i40e_vc_notify_reset(pf);
5333
5334 /* quiesce the VSIs and their queues that are not already DOWN */ 5334 /* quiesce the VSIs and their queues that are not already DOWN */
5335 i40e_pf_quiesce_all_vsi(pf); 5335 i40e_pf_quiesce_all_vsi(pf);
5336 5336