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 0c6f06efce12f7519c15ac4e83d79828776eb886..7b06f3592bd77a0486c2a9f828cb135442554293 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 {