On Fri, Sep 20, 2019 at 04:39:06PM +0000, Stuart Venters wrote:
> Change the argument list for filter_create to add an indication of
> which filter is being created, and pointers to the clock_type and
> config.

> Change the argument list for filter_sample to be local time of the
> experiment and observed delay.  Return value would be filtered
> delay. Where delay is rxtimestamp - txtimestamp with corrections.

No idea why "local time of the experiment" should matter, but I'll
wait to see the code.

> Change port.c to create two filters and use them on the one-way
> measurements before calling clock_synchronize and clock_path_delay.

The tsproc API already differentiates upstream versus downstream, and
so it should be easy for you to add a new tsproc_mode that keeps your
two "lucky" filters.

Why not do this...

Change tsproc_create() to

    tsproc_create(struct config *cfg, const char *portname, enum tsproc_mode 
mode);

and then allocate one or two filters depending on 'mode' ?

> Any interest in such a path?

Yes, indeed!  Tell us please whether the above will work.

Thanks,
Richard



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

Reply via email to