Yes, this works well.
Also using a flag instead of a special value is more linuxptp style.
Thanks,
Burkhard
2017-04-08 21:20 GMT+02:00 Richard Cochran :
> We will want to test whether a valid filtered delay value has been
> calculated or not. However, we cannot simply
> -Original Message-
> From: Richard Cochran [mailto:richardcoch...@gmail.com]
> Sent: Saturday, April 08, 2017 12:21 PM
> To: linuxptp-devel@lists.sourceforge.net
> Subject: [Linuxptp-devel] [PATCH 1/3] tsproc: Track the validity of the
> filtered
> delay explicit
We will want to test whether a valid filtered delay value has been
calculated or not. However, we cannot simply test for zero since that is
a legitimate possible delay value. This patch adds a flag that reflects
the state of the filtered delay field.
Signed-off-by: Richard Cochran