aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 004f266e435..7c7c9a897c0 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -10025,10 +10025,10 @@ static int tg3_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
10025 10025
10026 cmd->advertising = tp->link_config.advertising; 10026 cmd->advertising = tp->link_config.advertising;
10027 if (netif_running(dev)) { 10027 if (netif_running(dev)) {
10028 cmd->speed = tp->link_config.active_speed; 10028 ethtool_cmd_speed_set(cmd, tp->link_config.active_speed);
10029 cmd->duplex = tp->link_config.active_duplex; 10029 cmd->duplex = tp->link_config.active_duplex;
10030 } else { 10030 } else {
10031 cmd->speed = SPEED_INVALID; 10031 ethtool_cmd_speed_set(cmd, SPEED_INVALID);
10032 cmd->duplex = DUPLEX_INVALID; 10032 cmd->duplex = DUPLEX_INVALID;
10033 } 10033 }
10034 cmd->phy_address = tp->phy_addr; 10034 cmd->phy_address = tp->phy_addr;