aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/mlx4')
-rw-r--r--drivers/net/mlx4/en_ethtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx4/en_ethtool.c b/drivers/net/mlx4/en_ethtool.c
index be4a9e0b2406..2e858e4dcf4d 100644
--- a/drivers/net/mlx4/en_ethtool.c
+++ b/drivers/net/mlx4/en_ethtool.c
@@ -265,10 +265,10 @@ static int mlx4_en_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
265 265
266 trans_type = priv->port_state.transciver; 266 trans_type = priv->port_state.transciver;
267 if (netif_carrier_ok(dev)) { 267 if (netif_carrier_ok(dev)) {
268 cmd->speed = priv->port_state.link_speed; 268 ethtool_cmd_speed_set(cmd, priv->port_state.link_speed);
269 cmd->duplex = DUPLEX_FULL; 269 cmd->duplex = DUPLEX_FULL;
270 } else { 270 } else {
271 cmd->speed = -1; 271 ethtool_cmd_speed_set(cmd, -1);
272 cmd->duplex = -1; 272 cmd->duplex = -1;
273 } 273 }
274 274