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

Static optimization #17614

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

Static optimization #17614

wants to merge 1 commit into from

Conversation

nser77
Copy link

@nser77 nser77 commented Dec 10, 2024

Hello, this static optimization is intended to speed-up the election algorithm.

Making it configurable might be a great alternative.

Looking forward for your comments.

Regards,

Signed-off-by: nser77 <[email protected]>
@ton31337
Copy link
Member

What problem are you trying to solve here?

@nser77
Copy link
Author

nser77 commented Dec 10, 2024

Hello, thanks for your answer.

My curiosity here was whats the utility of 3 and this patch is indeed to clarify that.

@donaldsharp
Copy link
Member

The 3 is more than likely RFC defined. Have you read the rfc? In any event the patch is dead in the water the way it is presented. Please read workflow.rst for instructions on how to properly setup a patch for submission

@@ -91,7 +91,7 @@ static void vrrp_recalculate_timers(struct vrrp_router *r)
uint16_t skm = (r->vr->version == 3) ? r->master_adver_interval : 100;

r->skew_time = ((256 - r->vr->priority) * skm) / 256;
r->master_down_interval = 3 * mdiadv;
Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants