mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[NET]: Store skb->timestamp as offset to a base timestamp
Reduces skb size by 8 bytes on 64-bit. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
25ed891019
commit
a61bbcf28a
39 changed files with 172 additions and 88 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue