[Linuxptp-devel] [PATCH 2/2] Delay Response Timeout Feature addition for PTP4L

2021-08-18 Thread Karthikkumar V via Linuxptp-devel
This code changes brings in the ability to program delay response timeout within which, if the upstream master does not send a valid delay response within the configurable delay response timeout duration, device will move out of lock state..Default delay_response_timeout is 0 (disabled). Signed-of

[Linuxptp-devel] [PATCH] [Bug Fix]: gmPresent and gmIdentity is not updated in slaveOnly mode when GM is not reachable.

2021-08-18 Thread Karthikkumar V via Linuxptp-devel
This patch addresses the bug observed in ptp4l in slaveOnly mode. When the upstream master is no longer available (not reachable), the slave moves to LISTENING state. However, the gmIdentity is not updated in ptp4l. This causes gmPresent reported as true despite GM being non-reachable in pmc comman

[Linuxptp-devel] [PATCH 2/2] Delay Response Timeout Feature addition for PTP4L

2021-08-18 Thread Karthikkumar V via Linuxptp-devel
This code changes brings in the ability to program delay response timeout within which, if the upstream master does not send a valid delay response within the configurable delay response timeout duration, device will move out of lock state.Default delay_response_timeout is 0 (disabled). Signed-off

[Linuxptp-devel] [PATCH 1/2] [Bug Fix]: gmPresent and gmIdentity is not updated in slaveOnly mode when GM is not reachable.

2021-08-18 Thread Karthikkumar V via Linuxptp-devel
This patch addresses the bug observed in ptp4l in slaveOnly mode. When the upstream master is no longer available (not reachable), the slave moves to LISTENING state. However, the gmIdentity is not updated in ptp4l. This causes gmPresent reported as true despite GM being non-reachable in pmc comman

Re: [Linuxptp-devel] [PATCH] Only forward responses to UDS port with corresponding requests on the UDS port, and always send with a unique sequence count from uds.

2021-08-18 Thread Richard Cochran
On Mon, Aug 16, 2021 at 03:38:21PM +, Eric Decker wrote: > Subject: [PATCH] Only forward responses to UDS port with corresponding > requests on the UDS port, and always send management with a unique sequence > count from uds. The subject line should be ONE sentence, please. > > 1. Onl

Re: [Linuxptp-devel] process ID size in the pmc tool

2021-08-18 Thread Richard Cochran
On Tue, Aug 17, 2021 at 05:42:41PM +, Geva, Erez wrote: > In pmc_create(...) > > if (transport_type == TRANS_UDS) { > pmc->port_identity.portNumber = getpid(); > > When portNumber is UInteger16 > > However in new Linux systems, I notice that t

Re: [Linuxptp-devel] [PATCH] Only forward responses to UDS port with corresponding requests on the UDS port, and always send with a unique sequence count from uds.

2021-08-18 Thread Eric Decker
Response below tagged as EDecker: Eric Decker -Original Message- From: Richard Cochran Sent: Wednesday, August 18, 2021 12:23 PM To: Eric Decker Cc: linuxptp-devel@lists.sourceforge.net Subject: Re: [Linuxptp-devel] [PATCH] Only forward responses to UDS port with corresponding request

Re: [Linuxptp-devel] [PATCH] Only forward responses to UDS port with corresponding requests on the UDS port, and always send with a unique sequence count from uds.

2021-08-18 Thread Geva, Erez
Hi, Regarding: "pmc executes as a new process each time it is called". 1. No you can run the pmc tool in interactive mode. Then send new requests, line by line and with increasing the sequence ID. 2. You can use the libpmc library https://sf.net/projects/libpmc/, The library allow you to se

Re: [Linuxptp-devel] [PATCH] Only forward responses to UDS port with corresponding requests on the UDS port, and always send with a unique sequence count from uds.

2021-08-18 Thread Eric Decker
Hi Erez, I thought it might be better to take this part of the conversation offline, but maybe it will benefit others. How do you run pmc in interactive mode? I do not see that in the documentation. What is libpmc? Is it a part of the standard Linux PTP distribution, or is it a supplement to