提交 4fa9ed07 编写于 作者: A Ajit Khaparde 提交者: David S. Miller

be2net: Add code to display nic speeds other than 1Gbps/10Gbps

Signed-off-by: NAjit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 16a871ef
......@@ -384,12 +384,21 @@ static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
ecmd->speed = link_speed*10;
} else {
switch (mac_speed) {
case PHY_LINK_SPEED_10MBPS:
ecmd->speed = SPEED_10;
break;
case PHY_LINK_SPEED_100MBPS:
ecmd->speed = SPEED_100;
break;
case PHY_LINK_SPEED_1GBPS:
ecmd->speed = SPEED_1000;
break;
case PHY_LINK_SPEED_10GBPS:
ecmd->speed = SPEED_10000;
break;
case PHY_LINK_SPEED_ZERO:
ecmd->speed = 0;
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册