aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/transport.c')
-rw-r--r--net/sctp/transport.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c
index 3b141bb32faf..2df29cbdaf5a 100644
--- a/net/sctp/transport.c
+++ b/net/sctp/transport.c
@@ -83,7 +83,6 @@ static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer,
83 peer->fast_recovery = 0; 83 peer->fast_recovery = 0;
84 84
85 peer->last_time_heard = jiffies; 85 peer->last_time_heard = jiffies;
86 peer->last_time_used = jiffies;
87 peer->last_time_ecne_reduced = jiffies; 86 peer->last_time_ecne_reduced = jiffies;
88 87
89 peer->init_sent_count = 0; 88 peer->init_sent_count = 0;
@@ -565,10 +564,8 @@ void sctp_transport_lower_cwnd(struct sctp_transport *transport,
565 * to be done every RTO interval, we do it every hearbeat 564 * to be done every RTO interval, we do it every hearbeat
566 * interval. 565 * interval.
567 */ 566 */
568 if (time_after(jiffies, transport->last_time_used + 567 transport->cwnd = max(transport->cwnd/2,
569 transport->rto)) 568 4*transport->asoc->pathmtu);
570 transport->cwnd = max(transport->cwnd/2,
571 4*transport->asoc->pathmtu);
572 break; 569 break;
573 } 570 }
574 571