i40e: Fix VF's link state notification
authorMariusz Stachura <mariusz.stachura@intel.com>
Mon, 20 Aug 2018 15:12:22 +0000 (08:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 25 Sep 2018 19:46:49 +0000 (12:46 -0700)
This resolves an issue where the VF link state was not being updated
when the PF is down or up, and the VF link state would always show
that it is running.

Signed-off-by: Mariusz Stachura <mariusz.stachura@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index c7d2c9010fdf09140043c9f14642a9300394a3ff..fff53470e1828dec246c27036033920263c3a394 100644 (file)
@@ -8509,14 +8509,9 @@ static void i40e_link_event(struct i40e_pf *pf)
        i40e_status status;
        bool new_link, old_link;
 
-       /* save off old link status information */
-       pf->hw.phy.link_info_old = pf->hw.phy.link_info;
-
        /* set this to force the get_link_status call to refresh state */
        pf->hw.phy.get_link_info = true;
-
        old_link = (pf->hw.phy.link_info_old.link_info & I40E_AQ_LINK_UP);
-
        status = i40e_get_link_status(&pf->hw, &new_link);
 
        /* On success, disable temp link polling */