Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2009 22:05:37 GMT
From:      Andre Oppermann <andre@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 159638 for review
Message-ID:  <200903222205.n2MM5bIa031178@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=159638

Change 159638 by andre@andre_t61 on 2009/03/22 22:04:51

	Split the states the TCP sender can be in into clearly distinct phases
	to simplify the logic all over the place.

Affected files ...

.. //depot/projects/tcp_new/netinet/tcp_var.h#5 edit

Differences ...

==== //depot/projects/tcp_new/netinet/tcp_var.h#5 (text+ko) ====

@@ -137,9 +137,14 @@
 
 #define	TF_TSO		0x1000000	/* TSO enabled on this connection */
 
-	u_int	t_cflags;		/* congestion control flags */
-#define	TF_FASTRECOVERY	0x0100000	/* in NewReno Fast Recovery */
-#define	TF_WASFRECOVERY	0x0200000	/* was in NewReno Fast Recovery */
+	u_int	t_phase;		/* send phase we are currently in */
+#define	TP_IDLE		0		/* nothing to send */
+#define	TP_SLOWSTART	1		/* slow start */
+#define	TP_CONGAVOID	2		/* congestion avoidance */
+#define	TP_LOSSRECOV	3		/* loss recovery */
+#define	TP_LOSSREXMT	4		/* loss recovery failed, retransmit */
+#define	TP_PERSIST	5		/* persistent mode */
+#define	TP_URGENT	6		/* urgent mode */
 
 	int	t_softerror;		/* possible error not yet reported */
 


help

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