summaryrefslogtreecommitdiffstats
path: root/net/dccp/ccids/ccid3.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2007-08-19 17:18:13 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 16:48:15 -0700
commit0740d49c2465bdd2644455c4bc49794395b73433 (patch)
tree2c8e2ef42b4b6d78730561f01b3607ca08888cd2 /net/dccp/ccids/ccid3.c
parente7c2335794b949292ecfd01902c429e2ac3937e1 (diff)
downloadblackbird-op-linux-0740d49c2465bdd2644455c4bc49794395b73433.tar.gz
blackbird-op-linux-0740d49c2465bdd2644455c4bc49794395b73433.zip
[DCCP] packet_history: Convert dccphtx_tstamp to ktime_t
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ccids/ccid3.c')
-rw-r--r--net/dccp/ccids/ccid3.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c
index b21d8110298c..e75efe72da2b 100644
--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -401,7 +401,7 @@ static void ccid3_hc_tx_packet_sent(struct sock *sk, int more,
}
dccp_tx_hist_add_entry(&hctx->ccid3hctx_hist, packet);
- packet->dccphtx_tstamp = ktime_to_timeval(ktime_get_real());
+ packet->dccphtx_tstamp = ktime_get_real();
packet->dccphtx_seqno = dccp_sk(sk)->dccps_gss;
packet->dccphtx_rtt = hctx->ccid3hctx_rtt;
packet->dccphtx_sent = 1;
@@ -412,7 +412,7 @@ static void ccid3_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb)
struct ccid3_hc_tx_sock *hctx = ccid3_hc_tx_sk(sk);
struct ccid3_options_received *opt_recv;
struct dccp_tx_hist_entry *packet;
- ktime_t now, t_hist;
+ ktime_t now;
unsigned long t_nfb;
u32 pinv, r_sample;
@@ -451,12 +451,11 @@ static void ccid3_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb)
hctx->ccid3hctx_p = 1000000 / pinv;
now = ktime_get_real();
- t_hist = timeval_to_ktime(packet->dccphtx_tstamp);
/*
* Calculate new round trip sample as per [RFC 3448, 4.3] by
* R_sample = (now - t_recvdata) - t_elapsed
*/
- r_sample = dccp_sample_rtt(sk, now, &t_hist);
+ r_sample = dccp_sample_rtt(sk, now, &packet->dccphtx_tstamp);
/*
* Update RTT estimate by
OpenPOWER on IntegriCloud