When grandmaster does not use PTP timescale but the previous one did, we
need to reset sync offset and leap flag.

Signed-off-by: Jiri Benc <jb...@redhat.com>
---
 phc2sys.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/phc2sys.c b/phc2sys.c
index 76810e7c169f..76f27e938270 100644
--- a/phc2sys.c
+++ b/phc2sys.c
@@ -867,6 +867,9 @@ static int run_pmc_get_utc_offset(struct node *node, int 
timeout)
                        node->leap = -1;
                else
                        node->leap = 0;
+       } else {
+               node->sync_offset = 0;
+               node->leap = 0;
        }
        msg_put(msg);
        return 1;
-- 
1.7.6.5


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to