aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_common.c
diff options
context:
space:
mode:
authorDave Ertman <david.m.ertman@intel.com>2018-09-19 20:23:15 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-10-02 10:15:22 -0400
commit5755143dd18d3b7fa97b419d18d9bb4764b7b46f (patch)
tree156cc8e6de4a04f4938bd89f86e0504a56496324 /drivers/net/ethernet/intel/ice/ice_common.c
parent334cb0626de1b793a26d693051060f8dbf0e5b90 (diff)
ice: Check for actual link state of port after reset
We are currently replaying the link state of a port after a reset, but it is possible that the link state of a port can change during the reset process. So check for the current link state of a port during the rebuild process of a reset. Signed-off-by: Dave Ertman <david.m.ertman@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c
index 4e0ed2364a6b..9ff291375869 100644
--- a/drivers/net/ethernet/intel/ice/ice_common.c
+++ b/drivers/net/ethernet/intel/ice/ice_common.c
@@ -1740,8 +1740,7 @@ ice_aq_set_phy_cfg(struct ice_hw *hw, u8 lport,
1740 * ice_update_link_info - update status of the HW network link 1740 * ice_update_link_info - update status of the HW network link
1741 * @pi: port info structure of the interested logical port 1741 * @pi: port info structure of the interested logical port
1742 */ 1742 */
1743static enum ice_status 1743enum ice_status ice_update_link_info(struct ice_port_info *pi)
1744ice_update_link_info(struct ice_port_info *pi)
1745{ 1744{
1746 struct ice_aqc_get_phy_caps_data *pcaps; 1745 struct ice_aqc_get_phy_caps_data *pcaps;
1747 struct ice_phy_info *phy_info; 1746 struct ice_phy_info *phy_info;