Date: Mon, 26 Nov 2007 19:51:46 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 129573 for review Message-ID: <200711261951.lAQJpkbt033687@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=129573 Change 129573 by rpaulo@rpaulo_zoo on 2007/11/26 19:51:27 Add a tcpstat variable counting the number of times the congestion window was reduced due to ECN. Affected files ... .. //depot/projects/tcpecn/netinet/tcp_input.c#4 edit .. //depot/projects/tcpecn/netinet/tcp_var.h#3 edit Differences ... ==== //depot/projects/tcpecn/netinet/tcp_input.c#4 (text+ko) ==== @@ -968,8 +968,10 @@ * Ignore if we are already trying to recover. */ if ((thflags & TH_ECE) && - SEQ_LEQ(th->th_ack, tp->snd_recover)) + SEQ_LEQ(th->th_ack, tp->snd_recover)) { + tcpstat.tcps_ecn_rcwnd++; tcp_congestion_exp(tp); + } } /* ==== //depot/projects/tcpecn/netinet/tcp_var.h#3 (text+ko) ==== @@ -438,6 +438,7 @@ u_long tcps_ecn_ect0; /* ECN Capable Transport */ u_long tcps_ecn_ect1; /* ECN Capable Transport */ u_long tcps_ecn_shs; /* ECN successful handshakes */ + u_long tcps_ecn_rcwd; /* # times ECN reduced the cwd */ }; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711261951.lAQJpkbt033687>