提交 df40cc88 编写于 作者: F Florian Fainelli 提交者: 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: NJoe Perches <joe@perches.com>
Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册