From df40cc887924f64810e2dc8bd810aec5b37061c9 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 11 Feb 2014 17:27:34 -0800 Subject: [PATCH] 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 Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- drivers/net/phy/phy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index c35b2e73168a..8ae22603b1b1 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -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"); } -- GitLab