Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support hardware timestamps #346

Closed
wants to merge 1 commit into from

Conversation

leoleovich
Copy link
Contributor

Summary:
Add an option to enable hardware timestamps on ntp responder.
Default is software (same behaviour).
Apart from enabling hardware timestamper (which is only supported on Linux) we also run periodic PHC-SYS measurements

Differential Revision: D56255701

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 19, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56255701

Copy link
Contributor

@t3lurid3 t3lurid3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks v good. Nits.

Workers int
phcoffset time.Duration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not phcOffset ?

@@ -99,6 +99,19 @@ func (s *Server) Start(ctx context.Context, cancelFunc context.CancelFunc) {
}
}()

// Run PHC-SYS offset periodically
if s.Config.TimestampType == timestamp.HWTIMESTAMP {
log.Infof("Starting peridic measurement between phc and sysclock")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
log.Infof("Starting peridic measurement between phc and sysclock")
log.Infof("Starting periodic measurement between phc and sysclock")

@leoleovich leoleovich linked an issue Apr 19, 2024 that may be closed by this pull request
leoleovich added a commit to leoleovich/time that referenced this pull request Apr 19, 2024
Summary:
Pull Request resolved: facebook#346

Add an option to enable hardware timestamps on ntp responder.
Default is software (same behaviour).
Apart from enabling hardware timestamper (which is only supported on Linux) we also run periodic PHC-SYS measurements

Differential Revision: D56255701
leoleovich added a commit to leoleovich/time that referenced this pull request Apr 19, 2024
Summary:
Pull Request resolved: facebook#346

Add an option to enable hardware timestamps on ntp responder.
Default is software (same behaviour).
Apart from enabling hardware timestamper (which is only supported on Linux) we also run periodic PHC-SYS measurements

Differential Revision: D56255701
leoleovich added a commit to leoleovich/time that referenced this pull request Apr 19, 2024
Summary:
Pull Request resolved: facebook#346

Add an option to enable hardware timestamps on ntp responder.
Default is software (same behaviour).
Apart from enabling hardware timestamper (which is only supported on Linux) we also run periodic PHC-SYS measurements

Differential Revision: D56255701
leoleovich added a commit to leoleovich/time that referenced this pull request Apr 19, 2024
Summary:
Pull Request resolved: facebook#346

Add an option to enable hardware timestamps on ntp responder.
Default is software (same behaviour).
Apart from enabling hardware timestamper (which is only supported on Linux) we also run periodic PHC-SYS measurements

Differential Revision: D56255701
leoleovich added a commit to leoleovich/time that referenced this pull request Apr 19, 2024
Summary:
Pull Request resolved: facebook#346

Add an option to enable hardware timestamps on ntp responder.
Default is software (same behaviour).
Apart from enabling hardware timestamper (which is only supported on Linux) we also run periodic PHC-SYS measurements

Differential Revision: D56255701
Summary:
Pull Request resolved: facebook#346

Add an option to enable hardware timestamps on ntp responder.
Default is software (same behaviour).
Apart from enabling hardware timestamper (which is only supported on Linux) we also run periodic PHC-SYS measurements

Reviewed By: pmazzini

Differential Revision: D56255701
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 2be3b62.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: add hardware RX timestamp support
3 participants