integ/base/linuxptp/debian/patches
Andre Mauricio Zelak 600ad549b5 Use time traceable flag in HA clock selection
A new time traceable flag was added to pmc agent to store the current
time traceable status.

This flag replaces the utc_offset_traceable flag in the HA clock
selection algorithm and status command.

Test plan: HA clock selection algorithm
PASS: Verify the clock source which time isn't traceable is discarded
by the algorithm if ha_gm_timeTraceable is enabled.
PASS: Verify the clock source which time is traceable isn't discarded
by the algorithm if ha_gm_timeTraceable is enabled.

Regression: status command
PASS: Verify the response of status command shows the correct GM time
traceable.

The 'valid sources' command is used to get a list of interfaces which
the clock is matching the requirements. The response contains a space
separated list of interfaces, or "None" when not a single clock is
matching all the requirements.

Test plan: valid sources command
PASS: Verify that a space separated list of interface is returned when
one or more clocks match the requirements.
PASS: Verify that the string "None" is returned when not a single clock
match the requirements.

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.

Bonus:

Fixed the behavior when none clock is matching the requirements and the
active clock source is disabled using the 'disable source <interface>'
command. The interface is must be disabled and a new clock source is
selected.

Test plan: none clock is matching the requirements
PASS: Verify that the active source can be disabled and a new one is
selected.
PASS: Verify that an attempt to disable the last active interface
fails and an appopriated message is given as response.
PASS: Verify that the interface with higher priority is selected after
re-enabling it.
PASS: Verify the active clock source doesn't change if another
interface is disabled.
PASS: Verify the active clock source doesn't change if another
interface is re-enabled.

Story: 2010723
Task: 48702

Change-Id: I64193575a995e520d36460c0ebb8dd452fa8c2b8
Signed-off-by: Andre Mauricio Zelak <andre.zelak@windriver.com>
2023-09-06 15:09:14 -03:00
..
0001-clock-Reset-state-when-switching-port-with-same-best.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0002-clock-Reset-clock-check-on-best-clock-port-change.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0003-port-Don-t-check-timestamps-from-non-slave-ports.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0004-port-Don-t-renew-raw-transport.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0005-clockcheck-Increase-minimum-interval.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0006-Add-option-to-disable-default-port-selection-in-phc2.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0007-sysoff-Change-sysoff_measure-to-return-errno.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0008-sysoff-Change-log-level-of-ioctl-error-messages.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0009-sysoff-Retry-on-EBUSY-when-probing-supported-ioctls.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0010-phc2sys-Don-t-exit-when-reading-of-PHC-fails-with-EB.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0011-phc2sys-extract-PMC-functionality-into-a-smaller-str.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0012-phc2sys-make-PMC-functions-non-static.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0013-phc2sys-break-out-pmc-code-into-pmc_common.c.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0014-Introduce-the-PMC-agent-module.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0015-pmc_agent-Rename-pmc_node-to-something-more-descript.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0016-pmc_agent-Hide-the-implementation.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0017-Find-a-better-home-for-the-management-TLV-ID-helper-.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0018-Find-a-better-home-for-the-management-TLV-data-helpe.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0019-Introduce-error-codes-for-the-run_pmc-method.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0020-pmc_agent-Convert-the-subscribe-method-into-the-cano.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0021-pmc_agent-Simplify-the-update-method.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0022-pmc_agent-Simplify-logic-in-update-method.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0023-pmc_agent-Remove-bogus-comparison-between-last-updat.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0024-pmc_agent-Perform-time-comparison-using-positive-log.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0025-pmc_agent-Rename-the-update-method-and-attempt-to-do.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0026-phc2sys-Fix-null-pointer-de-reference-in-manual-mode.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0027-pmc_agent-Convert-the-method-that-queries-TAI-UTC-of.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0028-pmc_agent-Convert-the-method-that-queries-the-port-p.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0029-pmc_agent-Generalize-the-method-that-queries-the-loc.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0030-pmc_agent-Simplify-the-method-that-gets-of-the-numbe.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0031-pmc_agent-Let-the-update-method-poll-for-push-events.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0032-phc2sys-Fix-regression-in-the-automatic-mode.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0033-Implement-push-notification-for-TIME_STATUS_NP.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0034-clock-Rename-UDS-variables-to-read-write.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0035-clock-Add-read-only-UDS-port-for-monitoring.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0036-Rename-management-ID-macros.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0037-Enhance-phc2sys-to-accept-multiple-ptp4l-inputs.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0038-Best-source-selection-algorithm.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0039-Select-best-source-clock-after-state-changes.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0040-Forced-lock-a-clock-source-in-configuration.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0041-HA-phc2sys-com-socket.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0042-Commands-enable-lock-and-disable-lock.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0043-Commands-enable-source-and-disable-source.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0044-Stream-type-phc2sys-com-socket.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0045-Functions-starts_with-and-str_at_column.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0046-Robustness-improvements-to-phc2sys-socket.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0047-phc2sys-without-w-option.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0048-HA-domain-number.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0049-GM-clock-accuracy-and-offset-scaled-log-variance.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0050-Select-matching-requirements-clock-if-active-doesn-t.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0051-Time-traceable-flag.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0052-Command-valid-sources.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0053-GM-time-traceable-check-enabled-by-default.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
0054-Disable-active-interface-failing.patch Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00
series Use time traceable flag in HA clock selection 2023-09-06 15:09:14 -03:00