提交 072efdf8 编写于 作者: A Anirudh Venkataramanan 提交者: Jeff Kirsher

ice: Recognize higher speeds

In ice_print_link_msg, add cases for 50GB and 100GB speeds. This
results in the right speed being reported on load, instead of
"Unknownbps".

When VF link if forced (in ice_set_pfe_link_forced), report
max speed 100GB.
Signed-off-by: NAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 4f70daa0
...@@ -645,6 +645,12 @@ void ice_print_link_msg(struct ice_vsi *vsi, bool isup) ...@@ -645,6 +645,12 @@ void ice_print_link_msg(struct ice_vsi *vsi, bool isup)
} }
switch (vsi->port_info->phy.link_info.link_speed) { switch (vsi->port_info->phy.link_info.link_speed) {
case ICE_AQ_LINK_SPEED_100GB:
speed = "100 G";
break;
case ICE_AQ_LINK_SPEED_50GB:
speed = "50 G";
break;
case ICE_AQ_LINK_SPEED_40GB: case ICE_AQ_LINK_SPEED_40GB:
speed = "40 G"; speed = "40 G";
break; break;
......
...@@ -103,7 +103,7 @@ ice_set_pfe_link_forced(struct ice_vf *vf, struct virtchnl_pf_event *pfe, ...@@ -103,7 +103,7 @@ ice_set_pfe_link_forced(struct ice_vf *vf, struct virtchnl_pf_event *pfe,
u16 link_speed; u16 link_speed;
if (link_up) if (link_up)
link_speed = ICE_AQ_LINK_SPEED_40GB; link_speed = ICE_AQ_LINK_SPEED_100GB;
else else
link_speed = ICE_AQ_LINK_SPEED_UNKNOWN; link_speed = ICE_AQ_LINK_SPEED_UNKNOWN;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册