aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorAjit Khaparde <ajit.khaparde@emulex.com>2011-04-19 08:10:53 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-19 23:13:09 -0400
commit4fa9ed07e3965a809fa309a769675ac1c6dc692b (patch)
tree9a171b397a4bbfe373d581d289242346437ea711 /drivers/net/benet
parent16a871ef552ff55c80b6d8d895e371ea07c58281 (diff)
be2net: Add code to display nic speeds other than 1Gbps/10Gbps
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_ethtool.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c
index 22523b92b92a..33c2beccaa8e 100644
--- a/drivers/net/benet/be_ethtool.c
+++ b/drivers/net/benet/be_ethtool.c
@@ -384,12 +384,21 @@ static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
384 ecmd->speed = link_speed*10; 384 ecmd->speed = link_speed*10;
385 } else { 385 } else {
386 switch (mac_speed) { 386 switch (mac_speed) {
387 case PHY_LINK_SPEED_10MBPS:
388 ecmd->speed = SPEED_10;
389 break;
390 case PHY_LINK_SPEED_100MBPS:
391 ecmd->speed = SPEED_100;
392 break;
387 case PHY_LINK_SPEED_1GBPS: 393 case PHY_LINK_SPEED_1GBPS:
388 ecmd->speed = SPEED_1000; 394 ecmd->speed = SPEED_1000;
389 break; 395 break;
390 case PHY_LINK_SPEED_10GBPS: 396 case PHY_LINK_SPEED_10GBPS:
391 ecmd->speed = SPEED_10000; 397 ecmd->speed = SPEED_10000;
392 break; 398 break;
399 case PHY_LINK_SPEED_ZERO:
400 ecmd->speed = 0;
401 break;
393 } 402 }
394 } 403 }
395 404