History

sctp: reset probe_timer in sctp_transport_pl_update

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.

Xin Long committed 5 years ago

Commit c6ea04e1 parent 40171241 file · +1 −3Browse files

Unified · Split

include/net/sctp/sctp.h+1−3
@@ -653,12 +653,10 @@ static inline void sctp_transport_pl_update(struct sctp_transport *t) · 652 unmodified lines
653653 if (t->pl.state == SCTP_PL_DISABLED)
654654 return;
655655
656− if (del_timer(&t->probe_timer))
657− sctp_transport_put(t);
658−
659656 t->pl.state = SCTP_PL_BASE;
660657 t->pl.pmtu = SCTP_BASE_PLPMTU;
661658 t->pl.probe_size = SCTP_BASE_PLPMTU;
659+ sctp_transport_reset_probe_timer(t);
662660 }
663661
664662 static inline bool sctp_transport_pl_enabled(struct sctp_transport *t)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t