Thread (34 messages) 34 messages, 6 authors, 2007-03-09

Re: [PATCH] NET : convert network timestamps to ktime_t

From: David Miller <davem@davemloft.net>
Date: 2007-03-05 00:19:25

From: Eric Dumazet <redacted>
Date: Fri, 02 Mar 2007 23:46:14 +0100
Stephen Hemminger a écrit :
quoted
You missed a couple of spots.
Arg yes...
 ...
quoted
-	}
-	skb_get_timestamp(skb, &svsk->sk_sk->sk_stamp);
+	svsk->sk_sk->sk_stamp = (skb->tstamp.tv64 != 0) ? skb->tstamp
+		: ktime_get_real();
Well, if we want to stay in the spirit of old code, we probably want to use 
current_kernel_time() (+ timespec_to_ktime()), because its less expensive.

And also setting the skb tstamp, no ?
Can you guys cook up an integrated patch with all the missing cases
fixed up as desired, so I can add this to net-2.6.22, thanks?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help