Chandra,

Your question has nothing to do with linuxptp (user space stack) or
even with the Linux kernel, and as such it is off topic for this list.

Having said that, I cannot resist offering an opinion...

> A simple solution is timestamping all the packets and making the dma
> flow uniform to all the packets - ptp and non-ptp regular packets,
> where each packet's timestamp whether needed or not for the ptp4l
> stack will be stored in the hardware fifo. 

IMHO this is only reasonable approach for modern MAC hardware.  Just
write the time stamp into the packet descriptor and be done with it.
It is just eight bytes, after all.  No two threads, no packet parsing
or alternate paths.  KISS.

Also, precise time stamps are useful to other applications beyond PTP,
and so making PTP frames into a special case is artificially limiting
the usefulness of your HW.

> It can lead to overflow due to slower turnaround from the driver or

Nonsense.  The driver must read the descriptor in any case, and it
will only handle the time stamp if the option is enabled.
 
> in the worst case slow down the link losing the throughput.

again, you can have a descriptor bit that tells whether to copy the
time stamp back or not.

Just my 2 cents,

Richard


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to