PERFORCE change 129573 for review
Rui Paulo
rpaulo at FreeBSD.org
Mon Nov 26 11:51:47 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=129573
Change 129573 by rpaulo at 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 */
};
/*
More information about the p4-projects
mailing list