This reverts commit
68c8a4f94cd3cfd654a52cbc8b57c5c9d99640dd.
Matching on flags IFF_UP AND NOT IFF_LOWER_UP and then reapply ethtool
settings freaks out some PHY drivers. While a better method is being
worked on, revert the problematic solution.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
#define IFF_LOWER_UP 0x10000
#endif
-static void
-system_set_ethtool_settings(struct device *dev, struct device_settings *s);
-
static void
system_device_update_state(struct device *dev, unsigned int flags, unsigned int ifindex)
{
device_set_present(dev, ifindex > 0);
}
device_set_link(dev, flags & IFF_LOWER_UP ? true : false);
-
- if ((flags & IFF_UP) && !(flags & IFF_LOWER_UP))
- system_set_ethtool_settings(dev, &dev->settings);
}
/* Evaluate netlink messages */