developer | 392c980 | 2023-08-18 18:09:30 +0800 | [diff] [blame] | 1 | --- a/drivers/net/phy/phylink.c |
| 2 | +++ b/drivers/net/phy/phylink.c |
| 3 | @@ -686,7 +686,10 @@ static void phylink_link_up(struct phyli |
| 4 | * the link_state) to the interface speed, and will send |
| 5 | * pause frames to the MAC to limit its transmission speed. |
| 6 | */ |
| 7 | - speed = phylink_interface_max_speed(link_state.interface); |
| 8 | + /* For tunnel HW offload, we need to get true link rate to |
| 9 | + * set QDMA rate limit as link rate. |
| 10 | + */ |
| 11 | + // speed = phylink_interface_max_speed(link_state.interface); |
| 12 | duplex = DUPLEX_FULL; |
| 13 | rx_pause = true; |
| 14 | break; |