Jamal Hadi wrote:
Ok, time to go into another separate thread ;->
Sounds like a good idea.
if (skbneedstimestamp)
do_gettimeofday(&skb->stamp);
else
defertimestamp()
For defertimestamp() would it be feasible that you store only the
jiffies value in the skb then get timeofday later and somehow
compensate for the difference? Seems very doable to me.
Question is when do you decide skbneedstimestamp?
Is it when the device is in promiscous mode or do it in ip or icmp etc?
cheers,
jamal
Jiffies is not nearly precise enough. You need something with
usec precision at least.
If we make a macro to read the value (converting as needed), and just
change all the readers to use that macro, then we don't have to make any
interesting decisions in the networking core.
Ben
--
Ben Greear <greearb@xxxxxxxxxxxxxxx> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
|