Commit 702b26a2 authored by David Decotigny's avatar David Decotigny Committed by David S. Miller

net: bridge: use __ethtool_get_ksettings

Signed-off-by: default avatarDavid Decotigny <decot@googlers.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 57709798
...@@ -36,10 +36,10 @@ ...@@ -36,10 +36,10 @@
*/ */
static int port_cost(struct net_device *dev) static int port_cost(struct net_device *dev)
{ {
struct ethtool_cmd ecmd; struct ethtool_link_ksettings ecmd;
if (!__ethtool_get_settings(dev, &ecmd)) { if (!__ethtool_get_link_ksettings(dev, &ecmd)) {
switch (ethtool_cmd_speed(&ecmd)) { switch (ecmd.base.speed) {
case SPEED_10000: case SPEED_10000:
return 2; return 2;
case SPEED_1000: case SPEED_1000:
......
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