Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Add comment urging a separation of TCP_RTT_SHIFT...
details: https://anonhg.NetBSD.org/src/rev/1bcd0ac70d8e
branches: trunk
changeset: 765416:1bcd0ac70d8e
user: gdt <gdt%NetBSD.org@localhost>
date: Wed May 25 23:17:44 2011 +0000
description:
Add comment urging a separation of TCP_RTT_SHIFT into separate defines
describing the EWMA calculation and the storage representation.
(No code change.)
diffstat:
sys/netinet/tcp_var.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 9f31be197d01 -r 1bcd0ac70d8e sys/netinet/tcp_var.h
--- a/sys/netinet/tcp_var.h Wed May 25 22:58:29 2011 +0000
+++ b/sys/netinet/tcp_var.h Wed May 25 23:17:44 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_var.h,v 1.166 2011/05/03 18:28:45 dyoung Exp $ */
+/* $NetBSD: tcp_var.h,v 1.167 2011/05/25 23:17:44 gdt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -571,6 +571,9 @@
* average (smoothed = (1/scale)sample + ((scale-1)/scale)smoothed).
* This results in alpha of 0.125 and beta of 0.25, following RFC2988
* section 2.3
+ *
+ * XXX Change SHIFT values to LGWEIGHT and REP_SHIFT, and adjust
+ * the code to use the correct ones.
*/
#define TCP_RTT_SHIFT 3 /* shift for srtt; 3 bits frac. */
#define TCP_RTTVAR_SHIFT 2 /* multiplier for rttvar; 2 bits */
Home |
Main Index |
Thread Index |
Old Index