Skip to content

Commit

Permalink
mii: add support of pause frames in mii_get_an
Browse files Browse the repository at this point in the history
Add support of pause frames advertise in mii_get_an. This provides all drivers
that use mii_ethtool_gset to represent their own and Link partner flow control
abilities in ethtool.

Signed-off-by: Artem Polyakov <artpol84@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
artpol84 authored and davem330 committed Apr 29, 2011
1 parent eee9700 commit 2b5a4ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ static u32 mii_get_an(struct mii_if_info *mii, u16 addr)
result |= ADVERTISED_100baseT_Half;
if (advert & ADVERTISE_100FULL)
result |= ADVERTISED_100baseT_Full;
if (advert & ADVERTISE_PAUSE_CAP)
result |= ADVERTISED_Pause;
if (advert & ADVERTISE_PAUSE_ASYM)
result |= ADVERTISED_Asym_Pause;

return result;
}
Expand Down

0 comments on commit 2b5a4ac

Please sign in to comment.