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
This commit is contained in:
Eric Joyner 2018-07-12 17:42:36 +00:00
parent e74c8ac80c
commit c9da8d8beb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336223
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;