diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-01-03 23:13:28 +0000 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-01-18 10:17:17 +0000 |
commit | d616127db70a3303fbb99b5f89f1f0ee8207a641 (patch) | |
tree | 3d7552eb19667f9c85a32ead943734bac947c9f6 /include/linux/phy.h | |
parent | a656c56b4bd62971638f4fe222c4f019b8d66c66 (diff) |
net: phy: add resolved pause support [*not for mainline*]
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index abffd24a7416..460be66800d0 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -645,6 +645,15 @@ struct phy_device { u8 master_slave_set; u8 master_slave_state; + /* + * 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); |