Re: Problem with frame time stamping

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Tuesday, November 13, 2007 - 3:27 am

Antoine Zen-Ruffinen a écrit :
I guess you misunderstood kernel source, because it is related to 
arrival time, more exactly when it was processed by network stack.
(Beware  modern NICS can delay the rx interrupt by some us (ethtool -c 
eth0), so that an interrupt can feed more than one packet to the OS)

Check net/core/dev.c function netif_rx()

{
...
   if (!skb->tstamp.tv64)
       net_timestamp(skb);

}

So as soon your system as at least one socket 'asking for tsamps', 
netstamp_needed is not null, and net_timestamp() will call __net_timestamp()
wich does :

skb->tstamp = ktime_get_real();

So you should not 'feed' tstamp.tv64 and let it being 0, so that 
netif_rx() can do its job.





-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problem with frame time stamping, Antoine Zen-Ruffinen, (Mon Nov 12, 8:42 am)
Re: Problem with frame time stamping, Eric Dumazet, (Mon Nov 12, 9:47 am)
Re: Problem with frame time stamping, Antoine Zen-Ruffinen, (Tue Nov 13, 3:07 am)
Re: Problem with frame time stamping, Eric Dumazet, (Tue Nov 13, 3:27 am)
Re: Problem with frame time stamping, Eric Dumazet, (Tue Nov 13, 3:36 am)
Re: Problem with frame time stamping, Antoine Zen-Ruffinen, (Tue Nov 13, 3:39 am)
Re: Problem with frame time stamping, Antoine Zen-Ruffinen, (Tue Nov 13, 3:43 am)
Re: Problem with frame time stamping, Eric Dumazet, (Tue Nov 13, 3:55 am)
Re: Problem with frame time stamping, Antoine Zen-Ruffinen, (Tue Nov 13, 5:34 am)
Re: Problem with frame time stamping, Eric Dumazet, (Tue Nov 13, 6:13 am)
Re: Problem with frame time stamping, Antoine Zen-Ruffinen, (Tue Nov 13, 7:46 am)