net: team: use __ethtool_get_ksettings
authorDavid Decotigny <decot@googlers.com>
Wed, 24 Feb 2016 18:58:05 +0000 (10:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Feb 2016 03:06:46 +0000 (22:06 -0500)
Signed-off-by: David Decotigny <decot@googlers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c

index 00558e1395847d51bccd4a35050c9ae1bb79f52a..2769835f48ca862cd4afb618e90204eb37d70bd7 100644 (file)
@@ -2813,12 +2813,12 @@ static void __team_port_change_send(struct team_port *port, bool linkup)
        port->state.linkup = linkup;
        team_refresh_port_linkup(port);
        if (linkup) {
-               struct ethtool_cmd ecmd;
+               struct ethtool_link_ksettings ecmd;
 
-               err = __ethtool_get_settings(port->dev, &ecmd);
+               err = __ethtool_get_link_ksettings(port->dev, &ecmd);
                if (!err) {
-                       port->state.speed = ethtool_cmd_speed(&ecmd);
-                       port->state.duplex = ecmd.duplex;
+                       port->state.speed = ecmd.base.speed;
+                       port->state.duplex = ecmd.base.duplex;
                        goto send_event;
                }
        }