svn commit: r216714 - stable/8/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Dec 26 17:21:48 UTC 2010


Author: tuexen
Date: Sun Dec 26 17:21:47 2010
New Revision: 216714
URL: http://svn.freebsd.org/changeset/base/216714

Log:
  MFC c216502:
  Fix a flightsize bug related to the processing of PKTDRP reports.
  
  Approved by: re

Modified:
  stable/8/sys/netinet/sctp_input.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/netinet/sctp_input.c
==============================================================================
--- stable/8/sys/netinet/sctp_input.c	Sun Dec 26 15:15:28 2010	(r216713)
+++ stable/8/sys/netinet/sctp_input.c	Sun Dec 26 17:21:47 2010	(r216714)
@@ -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;


More information about the svn-src-stable mailing list