diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-09-09 02:32:56 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-09-09 02:32:56 -0300 |
commit | 1a28599a2c2781dd6af72f4f84175e2db74d3bb1 (patch) | |
tree | 1cbb3911a234da8722bbd87445ca5b623d9328c8 /net/dccp | |
parent | 1c14ac0ae8eb62cbb40af1e31b156994c7d7d3d5 (diff) | |
download | kernel_samsung_tuna-1a28599a2c2781dd6af72f4f84175e2db74d3bb1.zip kernel_samsung_tuna-1a28599a2c2781dd6af72f4f84175e2db74d3bb1.tar.gz kernel_samsung_tuna-1a28599a2c2781dd6af72f4f84175e2db74d3bb1.tar.bz2 |
[CCID3] Use ELAPSED_TIME in the HC TX RTT estimation
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/ccids/ccid3.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index 63f8973..86c109e 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c @@ -483,7 +483,7 @@ static void ccid3_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb) opt_recv = &hctx->ccid3hctx_options_received; - t_elapsed = dp->dccps_options_received.dccpor_elapsed_time; + t_elapsed = dp->dccps_options_received.dccpor_elapsed_time * 10; x_recv = opt_recv->ccid3or_receive_rate; pinv = opt_recv->ccid3or_loss_event_rate; @@ -509,8 +509,12 @@ static void ccid3_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb) /* Update RTT */ r_sample = timeval_now_delta(&packet->dccphtx_tstamp); - /* FIXME: */ - // r_sample -= usecs_to_jiffies(t_elapsed * 10); + if (unlikely(r_sample <= t_elapsed)) + LIMIT_NETDEBUG(KERN_WARNING + "%s: r_sample=%uus, t_elapsed=%uus\n", + __FUNCTION__, r_sample, t_elapsed); + else + r_sample -= t_elapsed; /* Update RTT estimate by * If (No feedback recv) |