diff options
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index 0526715cc8c7..9081ce037149 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++ b/drivers/net/cxgb3/cxgb3_main.c | |||
@@ -1759,10 +1759,10 @@ static int get_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
1759 | cmd->advertising = p->link_config.advertising; | 1759 | cmd->advertising = p->link_config.advertising; |
1760 | 1760 | ||
1761 | if (netif_carrier_ok(dev)) { | 1761 | if (netif_carrier_ok(dev)) { |
1762 | cmd->speed = p->link_config.speed; | 1762 | ethtool_cmd_speed_set(cmd, p->link_config.speed); |
1763 | cmd->duplex = p->link_config.duplex; | 1763 | cmd->duplex = p->link_config.duplex; |
1764 | } else { | 1764 | } else { |
1765 | cmd->speed = -1; | 1765 | ethtool_cmd_speed_set(cmd, -1); |
1766 | cmd->duplex = -1; | 1766 | cmd->duplex = -1; |
1767 | } | 1767 | } |
1768 | 1768 | ||