net: phylink: resolve fixed link flow control
Resolve the fixed link flow control using the recently introduced linkmode_resolve_pause() helper, which we use in phylink_get_fixed_state() only when operating in full duplex mode. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
33faac8e03
commit
4e5aeb4157
2 changed files with 34 additions and 44 deletions
|
|
@ -12,12 +12,10 @@ struct net_device;
|
|||
|
||||
enum {
|
||||
MLO_PAUSE_NONE,
|
||||
MLO_PAUSE_ASYM = BIT(0),
|
||||
MLO_PAUSE_SYM = BIT(1),
|
||||
MLO_PAUSE_RX = BIT(2),
|
||||
MLO_PAUSE_TX = BIT(3),
|
||||
MLO_PAUSE_RX = BIT(0),
|
||||
MLO_PAUSE_TX = BIT(1),
|
||||
MLO_PAUSE_TXRX_MASK = MLO_PAUSE_TX | MLO_PAUSE_RX,
|
||||
MLO_PAUSE_AN = BIT(4),
|
||||
MLO_PAUSE_AN = BIT(2),
|
||||
|
||||
MLO_AN_PHY = 0, /* Conventional PHY */
|
||||
MLO_AN_FIXED, /* Fixed-link mode */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue