aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic/enic_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/enic/enic_main.c')
-rw-r--r--drivers/net/enic/enic_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index b2245511c51..3d99b0f1a23 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -180,10 +180,10 @@ static int enic_get_settings(struct net_device *netdev,
180 ecmd->transceiver = XCVR_EXTERNAL; 180 ecmd->transceiver = XCVR_EXTERNAL;
181 181
182 if (netif_carrier_ok(netdev)) { 182 if (netif_carrier_ok(netdev)) {
183 ecmd->speed = vnic_dev_port_speed(enic->vdev); 183 ethtool_cmd_speed_set(ecmd, vnic_dev_port_speed(enic->vdev));
184 ecmd->duplex = DUPLEX_FULL; 184 ecmd->duplex = DUPLEX_FULL;
185 } else { 185 } else {
186 ecmd->speed = -1; 186 ethtool_cmd_speed_set(ecmd, -1);
187 ecmd->duplex = -1; 187 ecmd->duplex = -1;
188 } 188 }
189 189