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

Showing the changes to include (1 of 1 file). Show all

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
653 if (t->pl.state == SCTP_PL_DISABLED)653 if (t->pl.state == SCTP_PL_DISABLED)
654 return;654 return;
655 655
656 if (del_timer(&t->probe_timer))
657 sctp_transport_put(t);
658
659 t->pl.state = SCTP_PL_BASE;656 t->pl.state = SCTP_PL_BASE;
660 t->pl.pmtu = SCTP_BASE_PLPMTU;657 t->pl.pmtu = SCTP_BASE_PLPMTU;
661 t->pl.probe_size = SCTP_BASE_PLPMTU;658 t->pl.probe_size = SCTP_BASE_PLPMTU;
659 sctp_transport_reset_probe_timer(t);
662}660}
663 661
664static inline bool sctp_transport_pl_enabled(struct sctp_transport *t)662static 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