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

Commit 27fbc7db authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

mdio: Expose pause frame advertising flags to ethtool



In mdio45_ethtool_gset_npage() and mdio45_ethtool_gset(), check MDIO
pause frame advertising flags and set the corresponding ethtool flags.

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 767f4a7c
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -162,6 +162,10 @@ static u32 mdio45_get_an(const struct mdio_if_info *mdio, u16 addr)
		result |= ADVERTISED_100baseT_Half;
		result |= ADVERTISED_100baseT_Half;
	if (reg & ADVERTISE_100FULL)
	if (reg & ADVERTISE_100FULL)
		result |= ADVERTISED_100baseT_Full;
		result |= ADVERTISED_100baseT_Full;
	if (reg & ADVERTISE_PAUSE_CAP)
		result |= ADVERTISED_Pause;
	if (reg & ADVERTISE_PAUSE_ASYM)
		result |= ADVERTISED_Asym_Pause;
	return result;
	return result;
}
}