Skip to content

Commit

Permalink
sctp: Clear fast_recovery on the transport when T3 timer expires.
Browse files Browse the repository at this point in the history
If T3 timer expires, we are retransmitting data due to timeout any
any fast recovery is null and void.  We can clear the fast recovery
flag.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
  • Loading branch information
Vlad Yasevich committed Sep 4, 2009
1 parent b9f8478 commit 33ce828
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/sctp/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ void sctp_transport_lower_cwnd(struct sctp_transport *transport,
transport->ssthresh = max(transport->cwnd/2,
4*transport->asoc->pathmtu);
transport->cwnd = transport->asoc->pathmtu;

/* T3-rtx also clears fast recovery on the transport */
transport->fast_recovery = 0;
break;

case SCTP_LOWER_CWND_FAST_RTX:
Expand Down

0 comments on commit 33ce828

Please sign in to comment.