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>

authored by artpol and committed by David S. Miller 2b5a4ace eee9700c

+4
+4
drivers/net/mii.c
··· 49 result |= ADVERTISED_100baseT_Half; 50 if (advert & ADVERTISE_100FULL) 51 result |= ADVERTISED_100baseT_Full; 52 53 return result; 54 }
··· 49 result |= ADVERTISED_100baseT_Half; 50 if (advert & ADVERTISE_100FULL) 51 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; 56 57 return result; 58 }