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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -12,12 +12,10 @@ struct net_device; · 11 unmodified lines | ||
| 12 | 12 | |
| 13 | 13 | enum { |
| 14 | 14 | 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), | |
| 19 | 17 | MLO_PAUSE_TXRX_MASK = MLO_PAUSE_TX | MLO_PAUSE_RX, |
| 20 | − MLO_PAUSE_AN = BIT(4), | |
| 18 | + MLO_PAUSE_AN = BIT(2), | |
| 21 | 19 | |
| 22 | 20 | MLO_AN_PHY = 0, /* Conventional PHY */ |
| 23 | 21 | MLO_AN_FIXED, /* Fixed-link mode */ |