be2net: fix speed displayed by ethtool on certain SKUs
authorAjit Khaparde <ajit.khaparde@emulex.com>
Thu, 26 Apr 2012 15:42:39 +0000 (15:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2012 04:03:35 +0000 (00:03 -0400)
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>
drivers/net/ethernet/emulex/benet/be_ethtool.c

index 0c6f06e..7b06f35 100644 (file)
@@ -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 {