Sorry I don't understand.

Are you suggest to use twoStepFlag in this way:

PORT_ITEM_INT("twoStepFlag", 0, 0, 1)


Then ptpt.conf should look like this:

[global]
twoStepFlag 1

[eth1]
twoStepFlag 0

[eth2]
twoStepFlag 1

[eth3]
# twoStepFlag ND -> inherit the [globa]/twoStepFlag


ciao

luigi


Il giorno mer, 21/04/2021 alle 10.08 -0700, Richard Cochran ha scritto:
> On Tue, Apr 20, 2021 at 12:35:08PM +0200, Luigi 'Comio' Mantellini
> wrote:
> > port.twoStepFlag.
> > 
> > When -1, inherit the global twoStepFlag value, otherwise enable
> > two-step mode
> > for sync messages on port basis. One-step mode can be used only
> > with hardware
> > time stamping. The default is -1 (as global twoStepFlag value).
> > ---
> >  config.c |  1 +
> >  port.c   | 40 +++++++++++++++++++++++++++++++++++++++-
> >  ptp4l.8  |  4 ++++
> >  3 files changed, 44 insertions(+), 1 deletion(-)
> > 
> > diff --git a/config.c b/config.c
> > index 4472d3d..13dcea8 100644
> > --- a/config.c
> > +++ b/config.c
> > @@ -291,6 +291,7 @@ struct config_item config_tab[] = {
> >         GLOB_ITEM_DBL("pi_proportional_exponent", -0.3, -DBL_MAX,
> > DBL_MAX),
> >         GLOB_ITEM_DBL("pi_proportional_norm_max", 0.7, DBL_MIN,
> > 1.0),
> >         GLOB_ITEM_DBL("pi_proportional_scale", 0.0, 0.0, DBL_MAX),
> > +       PORT_ITEM_INT("port.twoStepFlag", -1, -1, 1),
> 
> Why not just make twoStepFlag into GLOB_ITEM_INT ?
> 
> Thanks,
> Richard

Attachment: signature.asc
Description: This is a digitally signed message part

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

Reply via email to