mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 10:56:12 +07:00
be2net: fix speed displayed by ethtool on certain SKUs
logical speed returned by link_status_query needs to be multiplied by 10. Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ddc3f5cbaf
commit
2a89611a05
@ -557,7 +557,7 @@ static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
|
||||
if (!status)
|
||||
be_link_status_update(adapter, link_status);
|
||||
if (link_speed)
|
||||
et_speed = link_speed;
|
||||
et_speed = link_speed * 10;
|
||||
else
|
||||
et_speed = convert_to_et_speed(port_speed);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user