Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66291
b: refs/heads/master
c: 668348a
h: refs/heads/master
i:
  66289: 97ab0e6
  66287: a03a26f
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Oct 10, 2007
1 parent ccd2f8c commit aa8b529
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9823b7b5542858afe5b6a1e2df83b3847c28f3d6
refs/heads/master: 668348a4232d3dd0ee48b3dc13228b5a7eb57565
11 changes: 4 additions & 7 deletions trunk/net/dccp/ccids/ccid3.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ static void ccid3_hc_tx_packet_sent(struct sock *sk, int more,
unsigned int len)
{
struct ccid3_hc_tx_sock *hctx = ccid3_hc_tx_sk(sk);
struct timeval now;
struct dccp_tx_hist_entry *packet;

BUG_ON(hctx == NULL);
Expand All @@ -402,8 +401,7 @@ static void ccid3_hc_tx_packet_sent(struct sock *sk, int more,
}
dccp_tx_hist_add_entry(&hctx->ccid3hctx_hist, packet);

dccp_timestamp(sk, &now);
packet->dccphtx_tstamp = now;
packet->dccphtx_tstamp = ktime_to_timeval(ktime_get_real());
packet->dccphtx_seqno = dccp_sk(sk)->dccps_gss;
packet->dccphtx_rtt = hctx->ccid3hctx_rtt;
packet->dccphtx_sent = 1;
Expand Down Expand Up @@ -729,8 +727,7 @@ static void ccid3_hc_rx_send_feedback(struct sock *sk)
struct ccid3_hc_rx_sock *hcrx = ccid3_hc_rx_sk(sk);
struct dccp_sock *dp = dccp_sk(sk);
struct dccp_rx_hist_entry *packet;
struct timeval tnow;
ktime_t now;
ktime_t now, t_hist;
suseconds_t delta;

ccid3_pr_debug("%s(%p) - entry \n", dccp_role(sk), sk);
Expand Down Expand Up @@ -765,8 +762,8 @@ static void ccid3_hc_rx_send_feedback(struct sock *sk)
hcrx->ccid3hcrx_bytes_recv = 0;

/* Elapsed time information [RFC 4340, 13.2] in units of 10 * usecs */
tnow = ktime_to_timeval(now);
delta = timeval_delta(&tnow, &packet->dccphrx_tstamp);
t_hist = timeval_to_ktime(packet->dccphrx_tstamp);
delta = ktime_us_delta(now, t_hist);
DCCP_BUG_ON(delta < 0);
hcrx->ccid3hcrx_elapsed_time = delta / 10;

Expand Down

0 comments on commit aa8b529

Please sign in to comment.