From 84f68ed1cc044bb34284dfad2dd0358b04030f6f Mon Sep 17 00:00:00 2001 From: Gerrit Renker Date: Thu, 4 Sep 2008 07:30:19 +0200 Subject: [PATCH] --- yaml --- r: 111535 b: refs/heads/master c: 8b67ad12b04ef7bdf5d2b4de24fe5a609b26cf12 h: refs/heads/master i: 111533: 344dc5d3c7b5a64eef0252b9b73e9925bbb6a5f7 111531: eabb3145a04439f7484392d63b95480c4a50d482 111527: 52916a99e626d336db2ddf27a28c6e1dce7352ff 111519: 37e66c7cd544594e9e39db934b2c0eef0d41831c v: v3 --- [refs] | 2 +- trunk/net/dccp/ccids/lib/tfrc_equation.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index d9c300c67481..84a9ac7687c0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d0c05fe4448db5cbdd886186860581f736f59ae9 +refs/heads/master: 8b67ad12b04ef7bdf5d2b4de24fe5a609b26cf12 diff --git a/trunk/net/dccp/ccids/lib/tfrc_equation.c b/trunk/net/dccp/ccids/lib/tfrc_equation.c index bc3dc2b2a849..38239c4d5e14 100644 --- a/trunk/net/dccp/ccids/lib/tfrc_equation.c +++ b/trunk/net/dccp/ccids/lib/tfrc_equation.c @@ -632,8 +632,16 @@ u32 tfrc_calc_x(u16 s, u32 R, u32 p) if (p <= TFRC_CALC_X_SPLIT) { /* 0.0000 < p <= 0.05 */ if (p < TFRC_SMALLEST_P) { /* 0.0000 < p < 0.0001 */ - DCCP_WARN("Value of p (%d) below resolution. " - "Substituting %d\n", p, TFRC_SMALLEST_P); + /* + * In the congestion-avoidance phase p decays towards 0 + * when there are no further losses, so this case is + * natural. Truncating to p_min = 0.01% means that the + * maximum achievable throughput is limited to about + * X_calc_max = 122.4 * s/RTT (see RFC 3448, 3.1); e.g. + * with s=1500 bytes, RTT=0.01 s: X_calc_max = 147 Mbps. + */ + tfrc_pr_debug("Value of p (%d) below resolution. " + "Substituting %d\n", p, TFRC_SMALLEST_P); index = 0; } else /* 0.0001 <= p <= 0.05 */ index = p/TFRC_SMALLEST_P - 1;