From: Gerrit Renker Date: Tue, 21 Aug 2007 14:10:31 +0000 Subject: [RFC][PATCH 1/1]: Let dccp_epoch return Message-Id: <200708211510.31147@strip-the-willow> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: dccp@vger.kernel.org This is an idea-test, not a full patch. But I have found it to work. The idea is to start the timer when DCCP is loaded. This gives 2^32-1 usecs = circa 49 days before the clock wraps around. What I have tested is the RTT sampling for the initial SYN RTT and that worked well with the hack below. Here is a transcript (after the patch) $ iperf -c 10.0.0.1 -d ------------------------------------------------------------ Client connecting to 10.0.0.1, DCCP port 5001 NOTE: running in bytestream-mode (maximum speed) DCCP datagram buffer size: 104 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.0.176 port 53425 connected with 10.0.0.1 port 5001 Aug 21 15:04:04 gerrit kernel: delta = 171 dccpor_timestamp_echo * 10); - delta = ktime_to_us(t_recv); + delta = dccp_timestamp() - or->dccpor_timestamp_echo * 10; + printk("delta = %lld\n", (long long)delta); } else delta = ktime_us_delta(t_recv, *t_hist);