diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-01-03 18:34:17 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-02-20 10:47:20 +0000 |
commit | 80d54294d168112d793cfb56f4afe3c2ff7e8588 (patch) | |
tree | d83345995ad0c2828ffbb7a7fe625d82b10f13e8 /include | |
parent | d8b358f2f1e46ce2ca6140e70284cb7d8961d9f2 (diff) |
phylink: propagate PHY interface mode to MAC driver
Some 10Gigabit PHYs automatically switch the mode of their host
interface depending on their negotiated speed. We need to communicate
this to the MAC driver so the MAC can switch its host interface to
match the PHYs new operating mode. Provide the current PHY interface
mode to the MAC driver.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phylink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index c4c979119dc7..089972870730 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -27,6 +27,7 @@ enum { struct phylink_link_state { __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); __ETHTOOL_DECLARE_LINK_MODE_MASK(lp_advertising); + phy_interface_t interface; /* PHY_INTERFACE_xxx */ int speed; int duplex; int pause; |