sctp_transport_pl_update() is called when transport update its dst and pathmtu, instead of stopping the PLPMTUD probe timer, PLPMTUD should start over and reset the probe timer. Otherwise, the PLPMTUD service would stop.
Showing the changes to include (1 of 1 file). Show all
Unified · Split
| @@ -653,12 +653,10 @@ static inline void sctp_transport_pl_update(struct sctp_transport *t) · 652 unmodified lines | ||
| 653 | 653 | if (t->pl.state == SCTP_PL_DISABLED) |
| 654 | 654 | return; |
| 655 | 655 | |
| 656 | − if (del_timer(&t->probe_timer)) | |
| 657 | − sctp_transport_put(t); | |
| 658 | − | |
| 659 | 656 | t->pl.state = SCTP_PL_BASE; |
| 660 | 657 | t->pl.pmtu = SCTP_BASE_PLPMTU; |
| 661 | 658 | t->pl.probe_size = SCTP_BASE_PLPMTU; |
| 659 | + sctp_transport_reset_probe_timer(t); | |
| 662 | 660 | } |
| 663 | 661 | |
| 664 | 662 | static inline bool sctp_transport_pl_enabled(struct sctp_transport *t) |