Message ID | 1430161042-28494-9-git-send-email-catherine.sullivan@intel.com |
---|---|
State | Accepted |
Delegated to: | Jeff Kirsher |
Headers | show |
> -----Original Message----- > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@lists.osuosl.org] On > Behalf Of Catherine Sullivan > Sent: Monday, April 27, 2015 11:57 AM > To: intel-wired-lan@lists.osuosl.org > Subject: [Intel-wired-lan] [net-next S5 08/15] i40e: un-disable VF after reset > > From: Mitch Williams <mitch.a.williams@intel.com> > > When a VF is disabled, there is no way for it to recover until either the PF > driver is reloaded or SR-IOV is disabled and enabled. To correct this, enable > the VF after a successful reset. > > Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> > Change-ID: I9e0788476c4d53d5407961b503febdfff2b8a7c6 > --- > drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 1 + > 1 file changed, 1 insertion(+) > Tested-by: Jim Young <james.m.young@intel.com>
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c index 008ab29..b639510 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c @@ -832,6 +832,7 @@ complete_reset: i40e_alloc_vf_res(vf); i40e_enable_vf_mappings(vf); set_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states); + clear_bit(I40E_VF_STAT_DISABLED, &vf->vf_states); /* tell the VF the reset is done */ wr32(hw, I40E_VFGEN_RSTAT1(vf->vf_id), I40E_VFR_VFACTIVE);