lkml.org 
[lkml]   [2020]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/5] net: fec: properly support external PTP PHY for hardware time stamping
On Tue, Jul 07, 2020 at 10:04:37AM +0300, Vladimir Oltean wrote:
> > > We do it like this:
> > > - DSA: If there is a timestamping switch stacked on top of a
> > > timestamping Ethernet MAC, the switch hijacks the .ndo_do_ioctl of the
> > > host port, and you are supposed to use the PTP clock of the switch,
> > > through the .ndo_do_ioctl of its own (virtual) net devices. This
> > > approach works without changing any code in each individual Ethernet
> > > MAC driver.
> > > - PHY: The Ethernet MAC driver needs to be kind enough to check whether
> > > the PHY supports hw timestamping, and pass this ioctl to that PHY
> > > while making sure it doesn't do anything stupid in the meanwhile, like
> > > also acting upon that timestamping request itself.
> > >
> > > Both are finicky in their own ways. There is no real way for the user to
> > > select which PHC they want to use. The assumption is that you'd always
> > > want to use the outermost one, and that things in the kernel side always
> > > collaborate towards that end.

Vladimir, your explanations in this thread are valuable. Please
consider converting them into a patch to expand

Documentation/networking/timestamping.rst


Thanks,
Richard

\
 
 \ /
  Last update: 2020-07-08 13:02    [W:0.110 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site