Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Dec 2010 15:39:55 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216502 - head/sys/netinet
Message-ID:  <201012171539.oBHFdtfT084358@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Fri Dec 17 15:39:55 2010
New Revision: 216502
URL: http://svn.freebsd.org/changeset/base/216502

Log:
  Fix a flightsize bug related to the processing of PKTDRP reports.
  
  MFC after: 3 days.

Modified:
  head/sys/netinet/sctp_input.c

Modified: head/sys/netinet/sctp_input.c
==============================================================================
--- head/sys/netinet/sctp_input.c	Fri Dec 17 11:25:37 2010	(r216501)
+++ head/sys/netinet/sctp_input.c	Fri Dec 17 15:39:55 2010	(r216502)
@@ -3156,7 +3156,6 @@ process_chunk_drop(struct sctp_tcb *stcb
 				SCTP_STAT_INCR(sctps_pdrpmark);
 				if (tp1->sent != SCTP_DATAGRAM_RESEND)
 					sctp_ucount_incr(stcb->asoc.sent_queue_retran_cnt);
-				tp1->sent = SCTP_DATAGRAM_RESEND;
 				/*
 				 * mark it as if we were doing a FR, since
 				 * we will be getting gap ack reports behind
@@ -3191,6 +3190,7 @@ process_chunk_drop(struct sctp_tcb *stcb
 					sctp_flight_size_decrease(tp1);
 					sctp_total_flight_decrease(stcb, tp1);
 				}
+				tp1->sent = SCTP_DATAGRAM_RESEND;
 			} {
 				/* audit code */
 				unsigned int audit;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012171539.oBHFdtfT084358>