diff options
author | Somnath Kotur <somnath.kotur@emulex.com> | 2012-05-02 05:40:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-03 03:07:24 +0200 |
commit | 682256dbef8e827385cf214f3ada8b62f6c227ed (patch) | |
tree | 51e7b725b6c963fa35862411ce91651c3e9bdb99 /drivers/net/ethernet/emulex | |
parent | be2net: Fix to not set link speed for disabled functions of a UMC card (diff) | |
download | linux-682256dbef8e827385cf214f3ada8b62f6c227ed.tar.xz linux-682256dbef8e827385cf214f3ada8b62f6c227ed.zip |
be2net: Fix to apply duplex value as unknown when link is down.
Suggested-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Sarveshwar Bandi <sarveshwar.bandi@emulex.com>
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c index c9ba2cbbd518..747f68fa976d 100644 --- a/drivers/net/ethernet/emulex/benet/be_ethtool.c +++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c @@ -618,7 +618,7 @@ static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) ecmd->supported = adapter->phy.supported; } - ecmd->duplex = DUPLEX_FULL; + ecmd->duplex = netif_carrier_ok(netdev) ? DUPLEX_FULL : DUPLEX_UNKNOWN; ecmd->phy_address = adapter->port_num; return 0; |