diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2011-04-19 14:10:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-20 05:13:09 +0200 |
commit | 4fa9ed07e3965a809fa309a769675ac1c6dc692b (patch) | |
tree | 9a171b397a4bbfe373d581d289242346437ea711 /drivers/net/benet/be_ethtool.c | |
parent | be2net: allow register dump only for PFs (diff) | |
download | linux-4fa9ed07e3965a809fa309a769675ac1c6dc692b.tar.xz linux-4fa9ed07e3965a809fa309a769675ac1c6dc692b.zip |
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/be_ethtool.c')
-rw-r--r-- | drivers/net/benet/be_ethtool.c | 9 |
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) ecmd->speed = link_speed*10; } else { switch (mac_speed) { + case PHY_LINK_SPEED_10MBPS: + ecmd->speed = SPEED_10; + break; + case PHY_LINK_SPEED_100MBPS: + ecmd->speed = SPEED_100; + break; case PHY_LINK_SPEED_1GBPS: ecmd->speed = SPEED_1000; break; case PHY_LINK_SPEED_10GBPS: ecmd->speed = SPEED_10000; break; + case PHY_LINK_SPEED_ZERO: + ecmd->speed = 0; + break; } } |