[Linuxptp-devel] [PATCH RFC 0/2] time stamp processing

2015-03-13 Thread Miroslav Lichvar
This is an implementation of the time stamp processor as discussed in the thread on improving accuracy with software timestamping. I would like to get some feedback before finishing it and rebasing the other patches on top of it. Is this a step in the right direction? Miroslav Lichvar (2):

[Linuxptp-devel] [PATCH RFC 1/2] Refactor time stamp processing.

2015-03-13 Thread Miroslav Lichvar
Introduce a time stamp processor for offset/delay calculations and use it in the clock and port modules. Also, convert and correct the time stamps early to reduce the number of parameters. --- clock.c | 143 +- clock.h | 22 -

[Linuxptp-devel] [PATCH RFC 2/2] tsproc: add raw and weighting modes.

2015-03-13 Thread Miroslav Lichvar
--- clock.c | 5 +++-- port.c | 2 +- tsproc.c | 27 ++- tsproc.h | 5 +++-- 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/clock.c b/clock.c index f52dc0b..1ec2b0d 100644 --- a/clock.c +++ b/clock.c @@ -852,7 +852,8 @@ struct clock

Re: [Linuxptp-devel] [PATCH RFC 0/2] time stamp processing

2015-03-13 Thread Richard Cochran
On Fri, Mar 13, 2015 at 11:47:28AM +0100, Miroslav Lichvar wrote: This is an implementation of the time stamp processor as discussed in the thread on improving accuracy with software timestamping. I would like to get some feedback before finishing it and rebasing the other patches on top of

Re: [Linuxptp-devel] [PATCH RFC 1/2] Refactor time stamp processing.

2015-03-13 Thread Richard Cochran
On Fri, Mar 13, 2015 at 11:47:29AM +0100, Miroslav Lichvar wrote: Introduce a time stamp processor for offset/delay calculations and use it in the clock and port modules. Also, convert and correct the time stamps early to reduce the number of parameters. The early correction part should come

Re: [Linuxptp-devel] [PATCH RFC 2/2] tsproc: add raw and weighting modes.

2015-03-13 Thread Richard Cochran
On Fri, Mar 13, 2015 at 11:47:30AM +0100, Miroslav Lichvar wrote: diff --git a/tsproc.h b/tsproc.h index 6ea91ed..b55e896 100644 --- a/tsproc.h +++ b/tsproc.h @@ -31,7 +31,8 @@ struct tsproc; * * @return A pointer to a new tsproc on success, NULL otherwise. */ -struct tsproc