aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/neterion
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2014-06-06 08:17:00 -0400
committerDavid S. Miller <davem@davemloft.net>2014-06-06 19:24:07 -0400
commit537fae0101c8853abb52136788173dde74b9d1e9 (patch)
treee6a169f851eb766b0574ac4fbbec45f474f11998 /drivers/net/ethernet/neterion
parent1caaab63d3ae3218a7fb1d25626d941d9ffb11dc (diff)
net: use SPEED_UNKNOWN and DUPLEX_UNKNOWN when appropriate
Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion')
-rw-r--r--drivers/net/ethernet/neterion/s2io.c4
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-ethtool.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c
index e3cf38e6ce3c..be587647c706 100644
--- a/drivers/net/ethernet/neterion/s2io.c
+++ b/drivers/net/ethernet/neterion/s2io.c
@@ -5360,8 +5360,8 @@ static int s2io_ethtool_gset(struct net_device *dev, struct ethtool_cmd *info)
5360 ethtool_cmd_speed_set(info, SPEED_10000); 5360 ethtool_cmd_speed_set(info, SPEED_10000);
5361 info->duplex = DUPLEX_FULL; 5361 info->duplex = DUPLEX_FULL;
5362 } else { 5362 } else {
5363 ethtool_cmd_speed_set(info, -1); 5363 ethtool_cmd_speed_set(info, SPEED_UNKNOWN);
5364 info->duplex = -1; 5364 info->duplex = DUPLEX_UNKNOWN;
5365 } 5365 }
5366 5366
5367 info->autoneg = AUTONEG_DISABLE; 5367 info->autoneg = AUTONEG_DISABLE;
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c b/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c
index ddcc81ad1ae1..b07d552a27d4 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c
@@ -62,8 +62,8 @@ static int vxge_ethtool_gset(struct net_device *dev, struct ethtool_cmd *info)
62 ethtool_cmd_speed_set(info, SPEED_10000); 62 ethtool_cmd_speed_set(info, SPEED_10000);
63 info->duplex = DUPLEX_FULL; 63 info->duplex = DUPLEX_FULL;
64 } else { 64 } else {
65 ethtool_cmd_speed_set(info, -1); 65 ethtool_cmd_speed_set(info, SPEED_UNKNOWN);
66 info->duplex = -1; 66 info->duplex = DUPLEX_UNKNOWN;
67 } 67 }
68 68
69 info->autoneg = AUTONEG_DISABLE; 69 info->autoneg = AUTONEG_DISABLE;