integ/base
Cole Walker aca42c6d4c Implement logic to skip updates with offset spike in ts2phc.
This change allows ts2phc to be configured to ignore timing updates that
have a large offset spike in order to mitigate the resulting timing
skew.

In some circumstances on realtime systems with high CPU load, the
timestamp consumed by ts2phc can be delayed in reaching ts2phc and
results in the offset calculation attempting to speed the clock up by a
large margin.

This change causes ts2phc to ignore updates that would greatly skew the
clock when ts2phc is already in a synchronized state.

The global configuration option "max_phc_update_skip_cnt" is provided to
allow users to specify how many consecutive offset spike incidents will
be ignored before adjusting the clock. The default value is 120. The
behaviour can be disabled by setting max_phc_update_skip_cnt to 0.

This code is ported from a proposed upstream patch found here:
https://sourceforge.net/p/linuxptp/mailman/message/44114092/

Test-plan:
Pass: Verify linuxptp package build
Pass: Deploy ts2phc binary and verify system time sync
Pass: Manually trigger offset spike and verify that ts2phc maintains
stable time sync

Closes-bug: https://bugs.launchpad.net/starlingx/+bug/2059955

Change-Id: I13cd5c3440682ec9256e11449fe62d5fe28f66fa
Signed-off-by: Cole Walker <cole.walker@windriver.com>
2024-04-01 14:53:06 -04:00
..
anaconda/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
base-passwd/debian Update debian packages for pkg-versioning 2023-03-15 14:44:32 +00:00
cluster-resource-agents Update resource-agents package ver based on git 2023-02-21 21:19:18 +00:00
dhcp isc-dhcp: fix CVE-2022-2929 2023-11-13 23:54:17 -05:00
dnsmasq debian: Disable dnsmasq systemd at start 2022-07-14 08:28:35 -04:00
dpkg Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
haproxy haproxy: Upgrade to 2.2.9-2+deb11u6 2024-01-02 04:31:53 -05:00
inih/centos Add: PF Baseband Device config application for ACC100 2021-02-11 23:18:51 +00:00
initscripts/centos Worker node slow to become online after power out 2021-07-06 17:18:24 +00:00
libevent Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
libfdt Fix lint errors identified by Zuul pylint job 2023-03-15 12:07:17 +00:00
lighttpd lighttpd: fix CVE-2022-22707 2023-07-20 05:13:24 +00:00
linuxptp Implement logic to skip updates with offset spike in ts2phc. 2024-04-01 14:53:06 -04:00
lsb/debian debian: Add status method to lsb for centos compatibility 2022-03-22 15:17:27 -04:00
lvm2/debian Debian: fix wrong checksums 2022-08-23 11:56:25 +08:00
ntp/centos ntp: fix CVE-2020-13817 2021-04-01 02:10:52 -04:00
openssh openssh: fix CVE-2018-15473 from source build 2021-01-26 07:50:09 +00:00
pf-bb-config Upgrade pf-bb-config to 23.03 2023-08-17 12:15:41 +05:30
rt-setup/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
setup Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
sudo/centos sudo: fix CVE-2021-3156 2021-03-01 13:20:16 -05:00
synce4l Add synce4l utility 2023-02-03 14:04:02 -05:00
systemd systemd: fix build after meson upgrade 2023-12-04 07:15:33 -05:00
systemd-presets Preset to enable ipsec auth server service 2024-02-20 14:10:57 -03:00
tzdata/centos update tzdata 2024-03-04 17:26:34 +00:00
watchdog meta_data.yaml: add sha256sum checksum 2022-03-03 14:30:40 +08:00