Hello everyone,

I have been working with the i350-T4 ethernet card to test a packet 
capturing library. I would like this library to be able to deliver a 
hardware timestamp for each incoming frame. In the datasheet for the 
i350 controller, one can see that this feature should be supported (p44, 
table I-4).

I tried to read out the values of these timestamps (I am working with a 
Linux kernel 3.2.9 - vanilla). To this end, I activated the hardware 
timestamping on the NIC, issuing an ioctl(SIOCSHWTSTAMP) call and 
filling the rx_filter field of the hwtstamp_config stucture with the 
value HWTSTAMP_FILTER_ALL. I then activated the socket option 
TIMESTAMPING, or-ing all possible values for the timesource. I should 
get the values of the timestamps for each frame from the control message 
header I receive by calling recvmsg() on my (raw) socket. In this 
header, I am supposed to receive the raw hardware timestamp (without 
correction in regards to the system clock), the corrected hardware 
timestamp (in the realm of the system clock) and the system timestamp 
(given higher up in the network stack). For a good 2/3rd of the packets, 
I receive only the system timestamp, the others being set to 0.

Does the i350 controller really produce a hardware timestamp for each 
incoming frames? If yes, is there another way to read out the values of 
these timestamps? Are there other options to activate HW 
timestamping/return these values?

Thanks,
Arthur


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit 
http://communities.intel.com/community/wired

Reply via email to