net: phy: update phy_print_status to show pause settings
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 12 Feb 2014 01:27:34 +0000 (17:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 00:08:19 +0000 (19:08 -0500)
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>
drivers/net/phy/phy.c

index c35b2e73168ab10e3d6aeb2f79bf92824755dae0..8ae22603b1b188ad2a3cc334aa716d155f1a30eb 100644 (file)
 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");
        }