mirror of https://gitee.com/openkylin/linux.git
i40e: always set ks->base.speed in i40e_get_settings_link_up
In i40e_get_settings_link_up, set ks->base.speed to SPEED_UNKNOWN in the case where we don't know the link speed. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
7c3758f783
commit
61bfb06005
|
@ -906,6 +906,7 @@ static void i40e_get_settings_link_up(struct i40e_hw *hw,
|
|||
ks->base.speed = SPEED_100;
|
||||
break;
|
||||
default:
|
||||
ks->base.speed = SPEED_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
ks->base.duplex = DUPLEX_FULL;
|
||||
|
|
Loading…
Reference in New Issue