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:
parent
e74c8ac80c
commit
c9da8d8beb
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user