Andre Mauricio Zelak 06c396fbe3 Fix HA clock selection algorithm
The issue reported is a particular case of a BC configured with
redundant PTP clocks with same priority. When a clock recovers
from a failure, as both clock were configured with same priority
it's expected the active clock source to remain active. But if
the recovered clock presented a better local clock class than
active, it was being selected active. This specific case was fixed.

Closes-bug: 2084723

Test plan: BC with same priority
PASS: Start the PTP service with all clocks out of requirements,
one is selected, no matter which one.
PASS: Then, when the backup clock recovers from failure it is
selected active.
PASS: Then, when the other clock recovers from failure it remains
as backup, no matter the local clock class.
PASS: Then, when the active goes out of requirement, the backup
is set active.

Test plan: GM with same priority
PASS: Start the PTP service with all clocks out of requirements,
one is selected, no matter which one.
PASS: Then, when the backup clock recovers from failure it is selected
active.
PASS: Then, when the other clock recovers from failure it remains
as backup, no matter the local clock class.
PASS: Then, when the active goes out of requirement, the backup
is set active.

Change-Id: Id2568bc8bbaad4cbf15070314f7904d3c3bbd53d
Signed-off-by: Andre Mauricio Zelak <andre.zelak@windriver.com>
2024-10-16 18:19:55 -03:00

61 lines
3.2 KiB
Plaintext

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