Date: Thu, 12 Jul 2018 17:42:37 +0000 (UTC) From: Eric Joyner <erj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r336223 - head/sys/dev/ixl Message-ID: <201807121742.w6CHgbfV082036@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: erj Date: Thu Jul 12 17:42:36 2018 New Revision: 336223 URL: https://svnweb.freebsd.org/changeset/base/336223 Log: ixl(4): Set baudrate on link up using proper link_speed variable And remove old, now-completely unused link_speed variable. Reported by: Jacob Keller <jacob.e.keller@intel.com> MFC after: 1 month Modified: head/sys/dev/ixl/if_ixl.c head/sys/dev/ixl/ixl_pf.h Modified: head/sys/dev/ixl/if_ixl.c ============================================================================== --- head/sys/dev/ixl/if_ixl.c Thu Jul 12 17:22:25 2018 (r336222) +++ head/sys/dev/ixl/if_ixl.c Thu Jul 12 17:42:36 2018 (r336223) @@ -1181,12 +1181,13 @@ void ixl_update_link_status(struct ixl_pf *pf) { struct ixl_vsi *vsi = &pf->vsi; + struct i40e_hw *hw = &pf->hw; u64 baudrate; if (pf->link_up) { if (vsi->link_active == FALSE) { vsi->link_active = TRUE; - baudrate = ixl_max_aq_speed_to_value(pf->link_speed); + baudrate = ixl_max_aq_speed_to_value(hw->phy.link_info.link_speed); iflib_link_state_change(vsi->ctx, LINK_STATE_UP, baudrate); ixl_link_up_msg(pf); #ifdef PCI_IOV Modified: head/sys/dev/ixl/ixl_pf.h ============================================================================== --- head/sys/dev/ixl/ixl_pf.h Thu Jul 12 17:22:25 2018 (r336222) +++ head/sys/dev/ixl/ixl_pf.h Thu Jul 12 17:42:36 2018 (r336223) @@ -120,7 +120,6 @@ struct ixl_pf { int rx_itr; bool link_up; - u32 link_speed; int advertised_speed; int fc; /* link flow ctrl setting */ enum ixl_dbg_mask dbg_mask;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807121742.w6CHgbfV082036>