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: Joe Perches <joe@perches.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
43b6329f98
commit
df40cc8879
@@ -45,9 +45,11 @@
|
|||||||
void phy_print_status(struct phy_device *phydev)
|
void phy_print_status(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
if (phydev->link) {
|
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,
|
phydev->speed,
|
||||||
DUPLEX_FULL == phydev->duplex ? "Full" : "Half");
|
DUPLEX_FULL == phydev->duplex ? "Full" : "Half",
|
||||||
|
phydev->pause ? "rx/tx" : "off");
|
||||||
} else {
|
} else {
|
||||||
netdev_info(phydev->attached_dev, "Link is Down\n");
|
netdev_info(phydev->attached_dev, "Link is Down\n");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user