Files
integ/base/linuxptp/debian/patches/0053-GM-time-traceable-check-enabled-by-default.patch
Andre Mauricio Zelak cfe25f0193 Fixed event port id map
Fixed the port id map in the Port Data Set event handling. The port id
is composed by port number and node index after the HA implementation.

Code tidying. As definition, the port id and the port number are
different. An existing port number variable was rennamed to
prevent missinterpretation.

Code tidying. The HA node state change processing was disabled
when HA feature is not enabled.

Test plan:
PASS: Verify the phc2sys executable recognizes the port in the port
state change event, when -a configuration option is used
PASS: Verify the events in the HA scenario are being recognized

Story: 2010723
Task: 49405

Change-Id: Iea2b3c4e7d7dcd07ca2ad52bc4042f80282b1a9a
Signed-off-by: Andre Mauricio Zelak <andre.zelak@windriver.com>
2024-01-15 16:28:29 -03:00

41 lines
1.4 KiB
Diff

From a304feefd0c9f6e6319eb643b82f70a8b122f58a Mon Sep 17 00:00:00 2001
From: Andre Mauricio Zelak <andre.zelak@windriver.com>
Date: Thu, 31 Aug 2023 12:36:02 -0300
Subject: [PATCH 53/56] GM time traceable check enabled by default
Now the GM time traceable check is enabled by default as it is an
important check for both T-GM and T-BC scenarios.
The GM time traceable check is controlled in configuration by using
the ha_gm_timeTraceable setting, and it can be disabled using the
value 0 (ha_gm_timeTraceable 0).
Test plan: default value
PASS Verify the check is performed by default.
PASS Verify the user can disable the check by configuration.
Story: 2010723
Task: 48702
Signed-off-by: Andre Mauricio Zelak <andre.zelak@windriver.com>
---
config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config.c b/config.c
index d405589..ef17463 100644
--- a/config.c
+++ b/config.c
@@ -253,7 +253,7 @@ struct config_item config_tab[] = {
PORT_ITEM_INT("ha_domainNumber", 0, 0, 127),
GLOB_ITEM_INT("ha_enabled", 0, 0, 1),
GLOB_ITEM_INT("ha_gm_frequencyTraceable", 0, 0, 1),
- GLOB_ITEM_INT("ha_gm_timeTraceable", 0, 0, 1),
+ GLOB_ITEM_INT("ha_gm_timeTraceable", 1, 0, 1),
GLOB_ITEM_INT("ha_max_gm_clockAccuracy", 0xfe, 0, 0xff),
GLOB_ITEM_INT("ha_max_gm_clockClass", 6, 6, 255),
GLOB_ITEM_INT("ha_max_gm_offsetScaledLogVar", 0xffff, 0, 0xffff),
--
2.25.1