Module Name:    src
Committed By:   skrll
Date:           Mon Jan  2 09:29:38 UTC 2017

Modified Files:
        src/sys/netinet: tcp_congctl.c

Log Message:
Restore behaviour to pre- tcp_congctl.c:1.18 for SACK.  Further analysis
of the change is required.

OK kefren@

PR/51753 tcp SACK causes SSH disconnect


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/netinet/tcp_congctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/tcp_congctl.c
diff -u src/sys/netinet/tcp_congctl.c:1.22 src/sys/netinet/tcp_congctl.c:1.23
--- src/sys/netinet/tcp_congctl.c:1.22	Tue Dec 13 08:29:03 2016
+++ src/sys/netinet/tcp_congctl.c	Mon Jan  2 09:29:38 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: tcp_congctl.c,v 1.22 2016/12/13 08:29:03 ozaki-r Exp $	*/
+/*	$NetBSD: tcp_congctl.c,v 1.23 2017/01/02 09:29:38 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2001, 2005, 2006 The NetBSD Foundation, Inc.
@@ -135,7 +135,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_congctl.c,v 1.22 2016/12/13 08:29:03 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_congctl.c,v 1.23 2017/01/02 09:29:38 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -707,7 +707,6 @@ tcp_newreno_fast_retransmit_newack(struc
 		tp->t_partialacks++;
 		TCP_TIMER_DISARM(tp, TCPT_REXMT);
 		tp->t_rtttime = 0;
-		tp->snd_nxt = th->th_ack;
 
 		if (TCP_SACK_ENABLED(tp)) {
 			/*
@@ -734,6 +733,7 @@ tcp_newreno_fast_retransmit_newack(struc
 			tp->t_flags |= TF_ACKNOW;
 			(void) tcp_output(tp);
 		} else {
+			tp->snd_nxt = th->th_ack;
 			/*
 			 * Set snd_cwnd to one segment beyond ACK'd offset
 			 * snd_una is not yet updated when we're called

Reply via email to