Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

net: bridge: use __ethtool_get_ksettings

parent 57709798
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -36,10 +36,10 @@
 */
static int port_cost(struct net_device *dev)
{
	struct ethtool_cmd ecmd;
	struct ethtool_link_ksettings ecmd;

	if (!__ethtool_get_settings(dev, &ecmd)) {
		switch (ethtool_cmd_speed(&ecmd)) {
	if (!__ethtool_get_link_ksettings(dev, &ecmd)) {
		switch (ecmd.base.speed) {
		case SPEED_10000:
			return 2;
		case SPEED_1000: