diff options
| author | Patrick McHardy <[email protected]> | 2005-08-15 00:24:31 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2005-08-29 22:58:24 +0000 |
| commit | a61bbcf28a8cb0ba56f8193d512f7222e711a294 (patch) | |
| tree | 33ae1976ab3b08aac516debb2742d2c6696d5436 /net/ipv4/tcp_input.c | |
| parent | [NETFILTER]: Nicer names for ipt_connbytes constants (diff) | |
| download | kernel-a61bbcf28a8cb0ba56f8193d512f7222e711a294.tar.gz kernel-a61bbcf28a8cb0ba56f8193d512f7222e711a294.zip | |
[NET]: Store skb->timestamp as offset to a base timestamp
Reduces skb size by 8 bytes on 64-bit.
Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
| -rw-r--r-- | net/ipv4/tcp_input.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index fdd9547fb783..ebb8654e3dee 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -2097,9 +2097,13 @@ static int tcp_clean_rtx_queue(struct sock *sk, __s32 *seq_rtt_p, s32 *seq_usrtt seq_rtt = -1; } else if (seq_rtt < 0) seq_rtt = now - scb->when; - if (seq_usrtt) - *seq_usrtt = (usnow.tv_sec - skb->stamp.tv_sec) * 1000000 - + (usnow.tv_usec - skb->stamp.tv_usec); + if (seq_usrtt) { + struct timeval tv; + + skb_get_timestamp(skb, &tv); + *seq_usrtt = (usnow.tv_sec - tv.tv_sec) * 1000000 + + (usnow.tv_usec - tv.tv_usec); + } if (sacked & TCPCB_SACKED_ACKED) tp->sacked_out -= tcp_skb_pcount(skb); |
