On Mon, Sep 11, 2023 at 09:53:54PM +0000, Keller, Jacob E wrote:
> 
> 
> > -----Original Message-----
> > From: Eyal Itkin via Linuxptp-devel <linuxptp-devel@lists.sourceforge.net>
> > Sent: Sunday, September 10, 2023 9:23 AM
> > To: linuxptp-devel@lists.sourceforge.net
> > Subject: [Linuxptp-devel] [PATCH] [pmc] Avoid conflicting port IDs over PMC 
> > UDS
> > 
> > The UDS interface is currently associated with a clock ID of zeros
> > and a 16-bit port number which is the process id. However, the
> > process id on Linux can easily by bigger than 16 bits (supposed
> > to be limited to 22 bits). This means that several linuxptp processes
> > (pmc and phc2sys for instance) can collide and use the same port id.
> > 
> > Hence, use the lower 2 bytes of the process id for the port number,
> > and the top 2 bytes as bytes 7 and 8 of the Clock ID.
> > 
> > Signed-off-by: Eyal Itkin <eit...@nvidia.com>
> > ---
> 
> Looks like this got sent twice, but it seems reasonable to me.
> 
> Reviewed-by: Jacob Keller <jacob.e.kel...@intel.com>

Applied.

Thanks,
Richard


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

Reply via email to