Patchwork [net-next,2/3] be2net: fix speed displayed by ethtool on certain SKUs

login
register
mail settings
Submitter Ajit Khaparde
Date April 27, 2012, 1:42 a.m.
Message ID <20120427014239.GA742@akhaparde-VBox>
Download mbox | patch
Permalink /patch/155368/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ajit Khaparde - April 27, 2012, 1:42 a.m.
logical speed returned by link_status_query needs to be multiplied by 10.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
---
 drivers/net/ethernet/emulex/benet/be_ethtool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c
index 0c6f06e..7b06f35 100644
--- a/drivers/net/ethernet/emulex/benet/be_ethtool.c
+++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c
@@ -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 {