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

Fix invalid rogue peer delay request error #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GeorgeKT
Copy link

When linuxptp goes from LISTENING to UNCALIBRATED, it will flush the the peer delay. This means that linuxptp forgets it sent a peer delay request. However, if there is an outstanding peer delay request at this point in time, the subsequent response will be considered rogue, and linuxptp will go into a faulty state. Which causes it to do nothing for a while.

To fix this, we keep track of wether a flush_peer_delay has occurred. And if we receive a response after one, we don't consider it rogue but just ignore it.

When linuxptp goes from LISTENING to UNCALIBRATED, it will flush the the peer delay.
This means that linuxptp forgets it sent a peer delay request.
However, if there is an outstanding peer delay request at this point in time,
the subsequent response will be considered rogue, and linuxptp will go into a faulty state.
Which causes it to do nothing for a while.

To fix this, we keep track of wether a flush_peer_delay has occurred.
And if we receive a response after one, we don't consider it rogue but just ignore it.

Signed-off-by: Joris Guisson <joris.guisson@luminex.be>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant