i40e: un-disable VF after reset
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 27 Apr 2015 18:57:15 +0000 (14:57 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 15 Jul 2015 01:26:42 +0000 (18:26 -0700)
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.

Change-ID: I9e0788476c4d53d5407961b503febdfff2b8a7c6
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

index 55b19f5e436ad2327455bcb4f721af2182734946..fdd7f5e3a66b11c672ef3f8ebbf293d4fb7e56b7 100644 (file)
@@ -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);