History

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.

Russell King committed 6 years ago

Commit 4e5aeb41 parent 33faac82 files · +34 −44Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/phylink.h+3−5
@@ -12,12 +12,10 @@ struct net_device; · 11 unmodified lines
1212
1313 enum {
1414 MLO_PAUSE_NONE,
15− MLO_PAUSE_ASYM = BIT(0),
16− MLO_PAUSE_SYM = BIT(1),
17− MLO_PAUSE_RX = BIT(2),
18− MLO_PAUSE_TX = BIT(3),
15+ MLO_PAUSE_RX = BIT(0),
16+ MLO_PAUSE_TX = BIT(1),
1917 MLO_PAUSE_TXRX_MASK = MLO_PAUSE_TX | MLO_PAUSE_RX,
20− MLO_PAUSE_AN = BIT(4),
18+ MLO_PAUSE_AN = BIT(2),
2119
2220 MLO_AN_PHY = 0, /* Conventional PHY */
2321 MLO_AN_FIXED, /* Fixed-link mode */