Skip to contentSkip to conversation

: Use skb timestamp for receiver side

PATCH In review Gerrit Renker 2 participants 2 messages Mar 21, 2007 – Mar 26, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 7/25 : Use skb timestamp for receiver side

[CCID 3]: Use skb timestamp for receiver side

This patch replaces calls to do_gettimeofday at the receiver CCID 3 with skb timestamps. The skb timestamps are computed earlier in the receive path, experimental measurements have shown that up to several hundred microseconds can lie between the skb receive timestamp and the timestamp taken when CCID 3 receives the packet. This difference has a negative impact on RTT estimation (reduced accuracy).

---
 net/dccp/ccids/lib/packet_history.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/dccp/ccids/lib/packet_history.h +1 -1
@@ -151,7 +151,7 @@ static inline struct dccp_rx_hist_entry 
 		entry->dccphrx_ccval = dh->dccph_ccval;
 		entry->dccphrx_type  = dh->dccph_type;
 		entry->dccphrx_ndp   = ndp;
-		do_gettimeofday(&entry->dccphrx_tstamp);
+		skb_get_timestamp(skb, &entry->dccphrx_tstamp);
 	}
 
 	return entry;
Acked-by on v1 7/25
#1 lore raw
Quoted 2 lines · Gerrit Renker

[CCID 3]: Use skb timestamp for receiver side

Signature · 3 lines
Web: http://wand.net.nz/~iam4
Blog: http://iansblog.jandi.co.nz
WAND Network Research Group