Skip to content

Commit 2b5a4ac

Browse files
artpol84davem330
authored andcommitted
mii: add support of pause frames in mii_get_an
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>
1 parent eee9700 commit 2b5a4ac

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/net/mii.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ static u32 mii_get_an(struct mii_if_info *mii, u16 addr)
4949
result |= ADVERTISED_100baseT_Half;
5050
if (advert & ADVERTISE_100FULL)
5151
result |= ADVERTISED_100baseT_Full;
52+
if (advert & ADVERTISE_PAUSE_CAP)
53+
result |= ADVERTISED_Pause;
54+
if (advert & ADVERTISE_PAUSE_ASYM)
55+
result |= ADVERTISED_Asym_Pause;
5256

5357
return result;
5458
}

0 commit comments

Comments
 (0)