diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2014-02-13 11:48:45 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-13 22:27:28 (GMT) |
commit | c17b362b6ffb720e570bb43fe28f2ac5e78a7ce8 (patch) | |
tree | f90c8c08c2e1e70b166711ddebd2df3a2415738d | |
parent | fd1646ee3a311362d3315250b30ccc688b919aef (diff) | |
download | linux-c17b362b6ffb720e570bb43fe28f2ac5e78a7ce8.tar.xz |
i40e: set VF state to active when reset is complete
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>
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c index 299372b..052be06 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c @@ -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); |