i40e: set VF state to active when reset is complete
authorMitch Williams <[email protected]>
Thu, 13 Feb 2014 11:48:45 +0000 (03:48 -0800)
committerDavid S. Miller <[email protected]>
Thu, 13 Feb 2014 22:27:28 +0000 (17:27 -0500)
Without this, the VF can never communicate with the PF after a VF
reset.

Change-ID: I8d10f1d0d0638d50d39f0aff263422e05d83ad83
Signed-off-by: Mitch Williams <[email protected]>
Signed-off-by: Jesse Brandeburg <[email protected]>
Tested-by: Sibai Li <[email protected]>
Signed-off-by: Aaron Brown <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

index 299372b852ce5eac0cb4cec301c2cd4b74314029..052be06b91aa8e8d3428c4a03afd29300e22a973 100644 (file)
@@ -674,6 +674,7 @@ complete_reset:
        mdelay(10);
        i40e_alloc_vf_res(vf);
        i40e_enable_vf_mappings(vf);
+       set_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states);
 
        /* tell the VF the reset is done */
        wr32(hw, I40E_VFGEN_RSTAT1(vf->vf_id), I40E_VFR_VFACTIVE);