Commit 0ab6b544 authored by David Decotigny's avatar David Decotigny Committed by David S. Miller

net: team: use __ethtool_get_ksettings

Signed-off-by: default avatarDavid Decotigny <decot@googlers.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 85f95819
...@@ -2813,12 +2813,12 @@ static void __team_port_change_send(struct team_port *port, bool linkup) ...@@ -2813,12 +2813,12 @@ static void __team_port_change_send(struct team_port *port, bool linkup)
port->state.linkup = linkup; port->state.linkup = linkup;
team_refresh_port_linkup(port); team_refresh_port_linkup(port);
if (linkup) { 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) { if (!err) {
port->state.speed = ethtool_cmd_speed(&ecmd); port->state.speed = ecmd.base.speed;
port->state.duplex = ecmd.duplex; port->state.duplex = ecmd.base.duplex;
goto send_event; goto send_event;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment