net: ethernet: Add helper to determine if pause configuration is supported
Rather than have MAC drivers open code the test, add a helper in phylib. This will help when we change the type of phydev->supported. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0c122405d4
commit
22b7d29926
6 changed files with 26 additions and 12 deletions
|
|
@ -1055,6 +1055,8 @@ void phy_support_asym_pause(struct phy_device *phydev);
|
|||
void phy_set_sym_pause(struct phy_device *phydev, bool rx, bool tx,
|
||||
bool autoneg);
|
||||
void phy_set_asym_pause(struct phy_device *phydev, bool rx, bool tx);
|
||||
bool phy_validate_pause(struct phy_device *phydev,
|
||||
struct ethtool_pauseparam *pp);
|
||||
|
||||
int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
|
||||
int (*run)(struct phy_device *));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue