|
@@ -879,7 +879,8 @@ static void i40e_free_vf_res(struct i40e_vf *vf)
|
|
|
}
|
|
|
/* reset some of the state variables keeping track of the resources */
|
|
|
vf->num_queue_pairs = 0;
|
|
|
- vf->vf_states = 0;
|
|
|
+ clear_bit(I40E_VF_STATE_MC_PROMISC, &vf->vf_states);
|
|
|
+ clear_bit(I40E_VF_STATE_UC_PROMISC, &vf->vf_states);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1586,6 +1587,8 @@ static int i40e_vc_get_vf_resources_msg(struct i40e_vf *vf, u8 *msg)
|
|
|
(vf->driver_caps & VIRTCHNL_VF_OFFLOAD_IWARP)) {
|
|
|
vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_IWARP;
|
|
|
set_bit(I40E_VF_STATE_IWARPENA, &vf->vf_states);
|
|
|
+ } else {
|
|
|
+ clear_bit(I40E_VF_STATE_IWARPENA, &vf->vf_states);
|
|
|
}
|
|
|
|
|
|
if (vf->driver_caps & VIRTCHNL_VF_OFFLOAD_RSS_PF) {
|