Skip to content

Conversation

@PlagueCZ
Copy link
Contributor

@PlagueCZ PlagueCZ commented Apr 8, 2025

When switching from backup mode to active mode, dpservice can note down the current timestamp on a NIC.

Then all packets older than this timestamp can be thrown away (per-port basis) and when the first packet that is not old arrives, processing can resume normally (packets that are present are in the right order, just old).

This requires the NIC to have timestamping offload capability (which Mellanox does), in cases there is none, timestamp will be set to zero and no flushing will take place.

Fixes #663

@github-actions github-actions bot added size/M enhancement New feature or request labels Apr 8, 2025
@PlagueCZ PlagueCZ marked this pull request as ready for review April 8, 2025 13:57
@PlagueCZ PlagueCZ requested a review from a team as a code owner April 8, 2025 13:57
Copy link
Collaborator

@guvenc guvenc left a comment

Choose a reason for hiding this comment

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

LGTM

@guvenc
Copy link
Collaborator

guvenc commented Apr 14, 2025

@PlagueCZ could you please rebase to main ?

@guvenc guvenc merged commit 8f08ae0 into main Apr 14, 2025
6 checks passed
@guvenc guvenc deleted the feature/ha_flush branch April 14, 2025 16:41
@github-project-automation github-project-automation bot moved this to Done in Roadmap Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Duplicated old packets when switching HA dpservice

4 participants