integ/base/linuxptp/debian/patches
Andre Mauricio Zelak 4a94f788a4 Select the clock matching requirements
Fix clock selection algorithm behavior where a clock source starts
to match requirements but is not selected because it has the same
ha_priority than active.

In a HA configuration with two or more clocks configured with equal
ha_priority if no clock source matches the requirements the first one
in the configuration file is selected active. This is a standard
behavior to always have a clock source, even when they are not
synchronized.

When one of the clock sources starts to match the requirements it
must be selected active, regardless of the priority.

But when a second clock source starts to match the requirements and
has the same ha_priority as the active, the active remains the clock
source. There is no need to switch active when they have equal
ha_priority.

Test plan: two sources with the same priority
PASS: Verify a clock source is selected active when it starts to match
the requirements and the current active doesn't match them, even if
they have equal ha_priority.
PASS: Verify a clock source isn't selected active when it starts to
match the requirements and the current active also matches them.

Regression: two sources with different priority
PASS: Verify a clock source is selected active when it starts to match
the requirements and the current active doesn't match them, even if
their ha_priority is lower than the actives.
PASS: Verify a clock source is selected active when it starts to match
the requirements and the current active also matches them but has
lower ha_priority configured.
PASS: Verify a clock source isn't selected active when it starts to
match the requirements and the current active also matches them
and has higher ha_priority configured.

Story: 2010723
Task: 48699

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