mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00: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
1 changed files with 4 additions and 2 deletions
|
@ -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 a new issue