summaryrefslogtreecommitdiff
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-01-03 23:13:28 +0000
committerRussell King <rmk+kernel@armlinux.org.uk>2020-06-29 01:19:11 +0100
commiteb7aabfc904d0718da588181f7f7ebbbe2980e7c (patch)
tree70956fa3cfa11d3b92bf0e360fa772e0e557615f /include/linux/phy.h
parente23f0ab148356873fe7b754459ac66a3fe4f8979 (diff)
net: phy: add resolved pause support
Allow phylib drivers to pass the hardware-resolved pause state to MAC drivers, rather than using the software-based pause resolution code. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 250c6f2f04b3..fb162b56343d 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -430,6 +430,15 @@ struct phy_device {
int pause;
int asym_pause;
+ /*
+ * private to phylib: the resolved pause state - only valid if
+ * resolved_pause_valid is true. only phy drivers and phylib
+ * should touch this.
+ */
+ bool resolved_pause_valid;
+ bool resolved_tx_pause;
+ bool resolved_rx_pause;
+
/* Union of PHY and Attached devices' supported link modes */
/* See ethtool.h for more info */
__ETHTOOL_DECLARE_LINK_MODE_MASK(supported);