Skip to content

Commit c86c00c

Browse files
aloktionanguy11
authored andcommitted
i40e: fix i40e_setup_misc_vector() error handling
Add error handling of i40e_setup_misc_vector() in i40e_rebuild(). In case interrupt vectors setup fails do not re-open vsi-s and do not bring up vf-s, we have no interrupts to serve a traffic anyway. Fixes: 41c445f ("i40e: main driver core") Signed-off-by: Aleksandr Loktionov <[email protected]> Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
1 parent 8485d09 commit c86c00c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11059,8 +11059,11 @@ static void i40e_rebuild(struct i40e_pf *pf, bool reinit, bool lock_acquired)
1105911059
pf->hw.aq.asq_last_status));
1106011060
}
1106111061
/* reinit the misc interrupt */
11062-
if (pf->flags & I40E_FLAG_MSIX_ENABLED)
11062+
if (pf->flags & I40E_FLAG_MSIX_ENABLED) {
1106311063
ret = i40e_setup_misc_vector(pf);
11064+
if (ret)
11065+
goto end_unlock;
11066+
}
1106411067

1106511068
/* Add a filter to drop all Flow control frames from any VSI from being
1106611069
* transmitted. By doing so we stop a malicious VF from sending out

0 commit comments

Comments
 (0)