|
@@ -8181,16 +8181,16 @@ static void i40e_remove(struct pci_dev *pdev)
|
|
|
|
|
|
i40e_ptp_stop(pf);
|
|
i40e_ptp_stop(pf);
|
|
|
|
|
|
- if (pf->flags & I40E_FLAG_SRIOV_ENABLED) {
|
|
|
|
- i40e_free_vfs(pf);
|
|
|
|
- pf->flags &= ~I40E_FLAG_SRIOV_ENABLED;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/* no more scheduling of any task */
|
|
/* no more scheduling of any task */
|
|
set_bit(__I40E_DOWN, &pf->state);
|
|
set_bit(__I40E_DOWN, &pf->state);
|
|
del_timer_sync(&pf->service_timer);
|
|
del_timer_sync(&pf->service_timer);
|
|
cancel_work_sync(&pf->service_task);
|
|
cancel_work_sync(&pf->service_task);
|
|
|
|
|
|
|
|
+ if (pf->flags & I40E_FLAG_SRIOV_ENABLED) {
|
|
|
|
+ i40e_free_vfs(pf);
|
|
|
|
+ pf->flags &= ~I40E_FLAG_SRIOV_ENABLED;
|
|
|
|
+ }
|
|
|
|
+
|
|
i40e_fdir_teardown(pf);
|
|
i40e_fdir_teardown(pf);
|
|
|
|
|
|
/* If there is a switch structure or any orphans, remove them.
|
|
/* If there is a switch structure or any orphans, remove them.
|