mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 22:14:20 +08:00
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:
parent
43b6329f98
commit
df40cc8879
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user