Commit 682256db authored by Somnath Kotur's avatar Somnath Kotur Committed by David S. Miller

be2net: Fix to apply duplex value as unknown when link is down.

Suggested-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarSarveshwar Bandi <sarveshwar.bandi@emulex.com>
Signed-off-by: default avatarSomnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22ca7a6e
...@@ -618,7 +618,7 @@ static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) ...@@ -618,7 +618,7 @@ static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
ecmd->supported = adapter->phy.supported; 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; ecmd->phy_address = adapter->port_num;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment