linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sctp: fix retransmit for multi-homed endpoints
@ 2009-08-22  3:10 Wei Yongjun
  2009-08-24 14:26 ` Vlad Yasevich
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2009-08-22  3:10 UTC (permalink / raw)
  To: linux-sctp

When T3-rtx has expired on multi-homed endpoints, the outstanding
DATA chunks may be retransmited to different path, if there are new
outstanding DATA chunks can be transmit. Such as the following:

  Endpoint (IP=X,Y)                Endpoint (IP=M,N)
                                           <--- Send (SizeH0)
              <--------------   DATA1 (SRC=M)
                                           <--- Send (SizeH0)
                                   (DATA2 not send with Nagle Algo)
             ...T3-rtx expired...
              <--------------   DATA1 (SRC=N)
              <--------------   DATA2 (SRC=M)

DATA1 and DATA2 should be sent bundled with SRC=N. So this patch
fixed it.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
 net/sctp/outqueue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c
index d765fc5..4109db8 100644
--- a/net/sctp/outqueue.c
+++ b/net/sctp/outqueue.c
@@ -960,7 +960,7 @@ static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout)
 				new_transport = asoc->peer.active_path;
 
 			/* Change packets if necessary.  */
-			if (new_transport != transport) {
+			if (new_transport != transport && !rtx_timeout) {
 				transport = new_transport;
 
 				/* Schedule to have this transport's
-- 
1.6.2.2





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-24 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-22  3:10 [PATCH] sctp: fix retransmit for multi-homed endpoints Wei Yongjun
2009-08-24 14:26 ` Vlad Yasevich

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).