On Tue, May 09, 2023 at 02:02:05PM +0200, Andrew Zaborowski wrote:
> Per https://www.kernel.org/doc/Documentation/networking/timestamping.txt
> section 3:
> "User space is responsible to ensure that multiple processes don't interfere
> with each other and that the settings are reset."
> 
> Add locking for the interface's HW timestamping mode to ensure that in a
> setup with multiple ptp4l sessions sharing interfaces the sessions don't
> overwrite each other's timestamping mode and that there is one session
> responsible for resetting the mode on exit.

This functionality really belongs in the kernel.  Only the kernel can
arbitrate sharing of hardware resources.

If you really think such functionality is needed, please take it to
netdev or lkml.

Thanks,
Richard


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to