diff options
Diffstat (limited to 'drivers/net/igb/igb_ethtool.c')
-rw-r--r-- | drivers/net/igb/igb_ethtool.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/igb/igb_ethtool.c b/drivers/net/igb/igb_ethtool.c index 2cc221b65cd4..023aa9b10654 100644 --- a/drivers/net/igb/igb_ethtool.c +++ b/drivers/net/igb/igb_ethtool.c | |||
@@ -178,11 +178,11 @@ static int igb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) | |||
178 | 178 | ||
179 | if ((status & E1000_STATUS_SPEED_1000) || | 179 | if ((status & E1000_STATUS_SPEED_1000) || |
180 | hw->phy.media_type != e1000_media_type_copper) | 180 | hw->phy.media_type != e1000_media_type_copper) |
181 | ecmd->speed = SPEED_1000; | 181 | ethtool_cmd_speed_set(ecmd, SPEED_1000); |
182 | else if (status & E1000_STATUS_SPEED_100) | 182 | else if (status & E1000_STATUS_SPEED_100) |
183 | ecmd->speed = SPEED_100; | 183 | ethtool_cmd_speed_set(ecmd, SPEED_100); |
184 | else | 184 | else |
185 | ecmd->speed = SPEED_10; | 185 | ethtool_cmd_speed_set(ecmd, SPEED_10); |
186 | 186 | ||
187 | if ((status & E1000_STATUS_FD) || | 187 | if ((status & E1000_STATUS_FD) || |
188 | hw->phy.media_type != e1000_media_type_copper) | 188 | hw->phy.media_type != e1000_media_type_copper) |
@@ -190,7 +190,7 @@ static int igb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) | |||
190 | else | 190 | else |
191 | ecmd->duplex = DUPLEX_HALF; | 191 | ecmd->duplex = DUPLEX_HALF; |
192 | } else { | 192 | } else { |
193 | ecmd->speed = -1; | 193 | ethtool_cmd_speed_set(ecmd, -1); |
194 | ecmd->duplex = -1; | 194 | ecmd->duplex = -1; |
195 | } | 195 | } |
196 | 196 | ||