i40e: set VF state to active when reset is complete
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 13 Feb 2014 11:48:45 +0000 (03:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
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 <mitch.a.williams@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

index 299372b..052be06 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);