Skip to content

Commit

Permalink
mdio: Expose pause frame advertising flags to ethtool
Browse files Browse the repository at this point in the history
In mdio45_ethtool_gset_npage() and mdio45_ethtool_gset(), check MDIO
pause frame advertising flags and set the corresponding ethtool flags.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Oct 13, 2009
1 parent 767f4a7 commit 27fbc7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ static u32 mdio45_get_an(const struct mdio_if_info *mdio, u16 addr)
result |= ADVERTISED_100baseT_Half;
if (reg & ADVERTISE_100FULL)
result |= ADVERTISED_100baseT_Full;
if (reg & ADVERTISE_PAUSE_CAP)
result |= ADVERTISED_Pause;
if (reg & ADVERTISE_PAUSE_ASYM)
result |= ADVERTISED_Asym_Pause;
return result;
}

Expand Down

0 comments on commit 27fbc7d

Please sign in to comment.