mirror of https://gitee.com/openkylin/linux.git
i40e: Add warning for NPAR partitions with link speed less than 10Gbps
NPAR enabled partitions should warn the user when detected link speed is less than 10Gpbs. Change-ID: I7728bb8ce279bf0f4f755d78d7071074a4eb5f69 Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
0758e7cb5f
commit
148c2d80d5
|
@ -4557,6 +4557,15 @@ static void i40e_print_link_message(struct i40e_vsi *vsi, bool isup)
|
|||
return;
|
||||
}
|
||||
|
||||
/* Warn user if link speed on NPAR enabled partition is not at
|
||||
* least 10GB
|
||||
*/
|
||||
if (vsi->back->hw.func_caps.npar_enable &&
|
||||
(vsi->back->hw.phy.link_info.link_speed == I40E_LINK_SPEED_1GB ||
|
||||
vsi->back->hw.phy.link_info.link_speed == I40E_LINK_SPEED_100MB))
|
||||
netdev_warn(vsi->netdev,
|
||||
"The partition detected link speed that is less than 10Gbps\n");
|
||||
|
||||
switch (vsi->back->hw.phy.link_info.link_speed) {
|
||||
case I40E_LINK_SPEED_40GB:
|
||||
strlcpy(speed, "40 Gbps", SPEED_SIZE);
|
||||
|
|
Loading…
Reference in New Issue