* [PATCH] [SCTP] Correctly reset ssthresh when restarting association
@ 2007-03-22 18:56 Vlad Yasevich
2007-03-22 19:26 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Vlad Yasevich @ 2007-03-22 18:56 UTC (permalink / raw)
To: David Miller
Cc: Sridhar Samudrala, netdev,
lksctp-developers@lists.sourceforge.net
Reset ssthresh to the correct value (peer's a_rwnd) when restarting
association.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
---
net/sctp/transport.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sctp/transport.c b/net/sctp/transport.c
index c4699f5..4d8c2ab 100644
--- a/net/sctp/transport.c
+++ b/net/sctp/transport.c
@@ -538,7 +538,7 @@ void sctp_transport_reset(struct sctp_transport *t)
* (see Section 6.2.1)
*/
t->cwnd = min(4*asoc->pathmtu, max_t(__u32, 2*asoc->pathmtu, 4380));
- t->ssthresh = SCTP_DEFAULT_MAXWINDOW;
+ t->ssthresh = asoc->peer.i.a_rwnd;
t->rto = asoc->rto_initial;
t->rtt = 0;
t->srtt = 0;
--
1.5.0.3.438.gc49b2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-22 19:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 18:56 [PATCH] [SCTP] Correctly reset ssthresh when restarting association Vlad Yasevich
2007-03-22 19:26 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).