Skip to content

Commit

Permalink
Merge branch 'v3_8'
Browse files Browse the repository at this point in the history
  • Loading branch information
abower-amd committed Oct 2, 2024
2 parents 59c949b + 33d94bd commit 6fa514d
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 16 deletions.
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

(c) Copyright 2012-2024 Advanced Micro Devices, Inc.

## [Unreleased]

## [3.8.0.1003] - 2024-09-30 [Feature Release]
## [3.8.0.1004] - 2024-10-03 [Feature Release]

### Added

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ subject to limitations, `chronyd`. The daemon works on Linux systems for 3.0
kernels and later.

See [the changelog](CHANGELOG.md) for recent additions to sfptpd. The current
stable branch is [v3_7](https://github.com/Xilinx-CNS/sfptpd/tree/v3_7).
stable branch is [v3_8](https://github.com/Xilinx-CNS/sfptpd/tree/v3_8).

For a **quick start** (operating PTP on bond0, domain 100), see
[one line docker example](/INSTALL.md#running-a-pre-built-container-image).
Expand Down
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AMD Solarflare Enhanced PTP Daemon
==================================

Version: v3.8.0.1003
Version: v3.8.0.1004

These release notes relate to official supported binary releases of sfptpd.
Please see [the changelog](CHANGELOG.md) for a list of changes since earlier
Expand Down
4 changes: 2 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sfptpd (3.8.0.1000) UNRELEASED; urgency=medium
sfptpd (3.8.0.1004) UNRELEASED; urgency=medium

* Upstream's Debian package for sfptpd; see CHANGELOG.md for real changelog.

-- AMD NIC Support <support-nic@amd.com> Mon, 4 Mar 2024 11:00:00 +0000
-- AMD NIC Support <support-nic@amd.com> Thu, 3 Oct 2024 11:00:00 +0000
4 changes: 4 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ override_dh_installsystemd:

override_dh_installinit:
dh_installinit --no-enable --no-start

# Avoid compressing example configurations so they can be used easily.
override_dh_compress:
dh_compress -X.cfg
2 changes: 1 addition & 1 deletion scripts/rpm/el6/sfptpd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ touch %{buildroot}%{_localstatedir}/lib/%{name}/{config,interfaces,sync-instance
rm -rf $RPM_BUILD_ROOT

%changelog
* Fri Sep 20 2024 AMD NIC Support <support-nic@amd.com> - 3.8.0.1003-1
* Fri Sep 20 2024 AMD NIC Support <support-nic@amd.com> - 3.8.0.1004-1
- see CHANGELOG.md in source archive for changelog
2 changes: 1 addition & 1 deletion scripts/rpm/el7/sfptpd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ make fast_test
%exclude %{_libexecdir}/%{name}/*.py[co]

%changelog
* Fri Sep 20 2024 AMD NIC Support <support-nic@amd.com> - 3.8.0.1003-1
* Fri Sep 20 2024 AMD NIC Support <support-nic@amd.com> - 3.8.0.1004-1
- see CHANGELOG.md in source archive for changelog
2 changes: 1 addition & 1 deletion scripts/rpm/el8/sfptpd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ make fast_test
%{_libexecdir}/%{name}/chrony_clockcontrol.py

%changelog
* Fri Sep 20 2024 AMD NIC Support <support-nic@amd.com> - 3.8.0.1003-1
* Fri Sep 20 2024 AMD NIC Support <support-nic@amd.com> - 3.8.0.1004-1
- see CHANGELOG.md in source archive for changelog
2 changes: 1 addition & 1 deletion scripts/rpm/el9/sfptpd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ make fast_test
%{_libexecdir}/%{name}/chrony_clockcontrol.py

%changelog
* Fri Sep 20 2024 AMD NIC Support <support-nic@amd.com> - 3.8.0.1003-1
* Fri Sep 20 2024 AMD NIC Support <support-nic@amd.com> - 3.8.0.1004-1
- see CHANGELOG.md in source archive for changelog
3 changes: 2 additions & 1 deletion src/sfptpd_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,8 @@ int sfptpd_clock_set_time(struct sfptpd_clock *clock_to,
int rc;

if (clock_to == clock_from ||
clock_to->initial_correction_applied)
(is_initial_correction &&
clock_to->initial_correction_applied))
return 0;

clock_lock();
Expand Down
9 changes: 5 additions & 4 deletions src/sfptpd_servo.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,9 @@ static int do_servo_synchronize(struct sfptpd_engine *engine, struct sfptpd_serv
/* set the NIC clock to system clock */
WARNING("%s: correcting master clock %s to system time\n", servo->servo_name,
sfptpd_clock_get_long_name(servo->master));
sfptpd_clock_correct_new(servo->master);
/* After we set the LRC's time to system time, return early so that we don't propagate the error */
sfptpd_clock_set_time(servo->master, sfptpd_clock_get_system_clock(), NULL, false);
/* After we set the LRC's time to system time,
return early so that we don't propagate the error */
return EAGAIN;
}
}
Expand Down Expand Up @@ -470,7 +471,7 @@ static int do_servo_synchronize(struct sfptpd_engine *engine, struct sfptpd_serv
/* set the NIC clock to system clock */
WARNING("%s: correcting slave clock %s to system time\n", servo->servo_name,
sfptpd_clock_get_long_name(servo->slave));
sfptpd_clock_correct_new(servo->slave);
sfptpd_clock_set_time(servo->slave, sfptpd_clock_get_system_clock(), NULL, false);
/* After we set the slave clock's time to system time,
* return early so that we don't propagate the error */
return EAGAIN;
Expand Down Expand Up @@ -513,7 +514,7 @@ static int do_servo_synchronize(struct sfptpd_engine *engine, struct sfptpd_serv
if ((servo->clock_ctrl == SFPTPD_CLOCK_CTRL_SLEW_AND_STEP) ||
((servo->clock_ctrl == SFPTPD_CLOCK_CTRL_STEP_AT_STARTUP ||
servo->clock_ctrl == SFPTPD_CLOCK_CTRL_STEP_ON_FIRST_LOCK) && !servo->active) ||
((servo->clock_ctrl == SFPTPD_CLOCK_CTRL_STEP_ON_FIRST_LOCK) &&
((servo->clock_ctrl == SFPTPD_CLOCK_CTRL_STEP_ON_FIRST_LOCK) &&
!servo->stepped_after_lrc_locked && sfptpd_clock_get_been_locked(servo->master)) ||
((servo->clock_ctrl == SFPTPD_CLOCK_CTRL_STEP_FORWARD) && (diff_ns < 0))) {
if ((diff_ns <= -servo->step_threshold) ||
Expand Down

0 comments on commit 6fa514d

Please sign in to comment.