Needing help for igb
Ronciak, John
john.ronciak at intel.com
Tue Sep 27 12:33:06 EDT 2011
Please refer to my reply on your other email thread.
Cheers,
John
From: ptpd-bounces at lists.infradead.org [mailto:ptpd-bounces at lists.infradead.org] On Behalf Of Plank, Stefan
Sent: Tuesday, September 27, 2011 4:43 AM
To: ptpd at lists.infradead.org
Subject: Needing help for igb
Hello,
I have studied documentation for IEEE 1588 PTP and Intel 82576 with IGB driver.
But I don't get HW timestamps in sending PTP packets?
I am using
linux kernel 2.6.37.6 (from 2.6.30 it should work)
igb driver 3.2.9 (latest)
I downloaded the ptpd which works without hw timestamping very well.
When adding hw support not this happens what I expected?
Still working I get logs "(ptpd error) received truncated ancillary data" periodically.
As described in linux documentation following seems to be (additionally) necessary:
ioctl(sock, SIOCSHWTSTAMP, &hwtstamp) with HWTSTAMP_TX_ON
setsockopt(sock, SOL_SOCKET, SO_TIMESTAMP, &temp, sizeof(int))
so_timestamping_flags = SOF_TIMESTAMPING_TX_HARDWARE | SOF_TIMESTAMPING_RX_HARDWARE | SOF_TIMESTAMPING_SYS_HARDWARE;
setsockopt(sock, SOL_SOCKET, SO_TIMESTAMPING, &so_timestamping_flags, sizeof(so_timestamping_flags))
Can you give me a hint how it works as wanted?
Does the 82576 place the timestamps (only) in ptp packets?
The offset in the packets is not always the same - how is this handled?
What I tested was to zero the timestamp in the buffer before calling sendto().
But 82576 hasn't written to the transmitted ptp packet?
Looking forward to your answer I say thank you.
Kind regards
Stefan Plank
Development
Siemens Enterprise Communications GmbH & Co. KG
Hofmannstr. 51
80200 Munich
Tel.: +49 89 7007-32410
Fax: +49 89 7007-31675
mailto:stefan.plank at siemens-enterprise.com
Communication for the open minded
www.siemens-enterprise.de<http://www.siemens-enterprise.de/>
Siemens Enterprise Communications GmbH & Co. KG; Sitz der Gesellschaft: München; Registergericht: München, HRA 88546; WEEE-Reg.Nr. DE 27980375; Persönlich haftende Gesellschafterin: Siemens Enterprise Communications Management GmbH; Geschäftsführer: Alexander Frick, Thomas Heim, Stefan Herrlich, Vera Meyer; Vorsitzender des Aufsichtsrates: Mark Stone;
Sitz der Gesellschaft: München; Registergericht: München, HRB 163415
Siemens Enterprise Communications GmbH & Co. KG is a Trademark Licensee of Siemens AG
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen enthalten firmenvertrauliche Informationen. Sollten Sie diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie uns bitte durch Antwort-Mail und löschen Sie diese E-Mail nebst Anlagen von Ihrem System. Vielen Dank.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/ptpd/attachments/20110927/6bf83639/attachment.html>
More information about the Ptpd
mailing list