|
@@ -1050,8 +1050,8 @@ static void i40e_cleanup_reset_vf(struct i40e_vf *vf)
|
|
|
set_bit(I40E_VF_STATE_ACTIVE, &vf->vf_states);
|
|
|
clear_bit(I40E_VF_STATE_DISABLED, &vf->vf_states);
|
|
|
/* Do not notify the client during VF init */
|
|
|
- if (test_and_clear_bit(I40E_VF_STATE_PRE_ENABLE,
|
|
|
- &vf->vf_states))
|
|
|
+ if (!test_and_clear_bit(I40E_VF_STATE_PRE_ENABLE,
|
|
|
+ &vf->vf_states))
|
|
|
i40e_notify_client_of_vf_reset(pf, abs_vf_id);
|
|
|
vf->num_vlan = 0;
|
|
|
}
|