lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 8 Jul 2014 11:41:18 +0200 From: Richard Cochran <richardcochran@...il.com> To: Chad Reese <kreese@...iumnetworks.com> Cc: Willem de Bruijn <willemb@...gle.com>, netdev@...r.kernel.org, David Miller <davem@...emloft.net>, Eric Dumazet <eric.dumazet@...il.com>, Stephen Hemminger <stephen@...workplumber.org>, David Daney <david.daney@...ium.com> Subject: Re: [PATCH net-next v2 1/8] net-timestamp: explicit SO_TIMESTAMPING ancillary data struct On Tue, Jul 08, 2014 at 12:42:46AM -0700, Chad Reese wrote: > > You keep saying I implemented a clock servo in the MAC driver. I > didn't, as is apparent in the code. The only kludge was a conversion > from the PTP clock to system time with a simple offset function. I > will fully admit it wasn't great, but it was good enough. I assume that the point of providing both raw and sys time stamps was to discipline the Linux system clock to the raw clock. (Otherwise, what good are the sys values?) In that case, the sample rate is a result of the packet activity in the driver, and the rate is a part of the servo, at least to my understanding. > I wrote a PTPv2 daemon for Cavium that ran in userspace. It > implemented all the v2 spec with support for both IP and 802.3 > transport. This was done from scratch as there wasn't an opensource > PTPv2 daemon at the time. All this work actually started before > there was any PTP timestamp support in the kernel. I originally > started writing PTP to run on bare metal. Okay, that is now clear. There is nothing wrong with that, although it is too bad you cannot use the newer interface. So, the question becomes, will removing the sys time stamp from the octeon driver spoil your application? [ The octeon time stamping was merged in August 2012, well after the PTP support which appeared in April 2011. So I guess that your custom application doesn't need the dual time stamps. ] Thanks, Richard -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists