Re: [PATCH net-next RFC v4 2/5] net: Expose available time stamping layers to user space.

Vladimir Oltean
2023-05-11T20:36:56Z

On Thu, Apr 06, 2023 at 06:46:46PM -0700, Jakub Kicinski wrote:
> > +/* Hardware layer of the SO_TIMESTAMPING provider */
> > +enum timestamping_layer {
> > + SOF_MAC_TIMESTAMPING = (1<<0),
> > + SOF_PHY_TIMESTAMPING = (1<<1),
>
> We need a value for DMA timestamps here.

What's a DMA timestamp, technically? Is it a snapshot of the PHC's time
domain, just not at the MII pins?

Which drivers provide DMA timestamps, and how do they currently signal
that they do this? Do they do this for all packets that get timestamped,
or for "some"?