Skip to content

Commit d3ce573

Browse files
mawilli1Jeff Kirsher
authored andcommitted
i40e: Notify VFs of all resets
Notify VFs in the reset interrupt handler, instead of the actual reset initiation code. This allows the VFs to get properly notified for all resets, including resets initiated by different PFs on the same physical device. Signed-off-by: Mitch Williams <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent c99abb4 commit d3ce573

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5534,8 +5534,6 @@ void i40e_do_reset(struct i40e_pf *pf, u32 reset_flags)
55345534

55355535
WARN_ON(in_interrupt());
55365536

5537-
if (i40e_check_asq_alive(&pf->hw))
5538-
i40e_vc_notify_reset(pf);
55395537

55405538
/* do the biggest reset indicated */
55415539
if (reset_flags & BIT_ULL(__I40E_GLOBAL_RESET_REQUESTED)) {
@@ -6738,6 +6736,8 @@ static void i40e_prep_for_reset(struct i40e_pf *pf)
67386736
clear_bit(__I40E_RESET_INTR_RECEIVED, &pf->state);
67396737
if (test_and_set_bit(__I40E_RESET_RECOVERY_PENDING, &pf->state))
67406738
return;
6739+
if (i40e_check_asq_alive(&pf->hw))
6740+
i40e_vc_notify_reset(pf);
67416741

67426742
dev_dbg(&pf->pdev->dev, "Tearing down internal switch for reset\n");
67436743

0 commit comments

Comments
 (0)