net: Change mii to ethtool advertisement function names
This patch implements advice by Ben Hutchings to change the mii side of the function names to look more like the register whose values they convert. New LPA translation functions have been added as well. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b8ffdbd05f
commit
37f07023d3
@@ -1151,8 +1151,8 @@ static int link_status_mii(struct niu *np, int *link_up_p)
|
||||
supported |= SUPPORTED_1000baseT_Full;
|
||||
lp->supported = supported;
|
||||
|
||||
advertising = mii_adv_to_ethtool_100bt(advert);
|
||||
advertising |= mii_adv_to_ethtool_1000T(ctrl1000);
|
||||
advertising = mii_adv_to_ethtool_adv_t(advert);
|
||||
advertising |= mii_ctrl1000_to_ethtool_adv_t(ctrl1000);
|
||||
|
||||
if (bmcr & BMCR_ANENABLE) {
|
||||
int neg, neg1000;
|
||||
|
Reference in New Issue
Block a user