Commit df40cc88 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: phy: update phy_print_status to show pause settings

Update phy_print_status() to also display the PHY device pause settings
(rx/tx or off).
Suggested-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 43b6329f
......@@ -45,9 +45,11 @@
void phy_print_status(struct phy_device *phydev)
{
if (phydev->link) {
netdev_info(phydev->attached_dev, "Link is Up - %d/%s\n",
netdev_info(phydev->attached_dev,
"Link is Up - %d/%s - flow control %s\n",
phydev->speed,
DUPLEX_FULL == phydev->duplex ? "Full" : "Half");
DUPLEX_FULL == phydev->duplex ? "Full" : "Half",
phydev->pause ? "rx/tx" : "off");
} else {
netdev_info(phydev->attached_dev, "Link is Down\n");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment