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

Zebra weighted ecmp #14553

Merged
merged 5 commits into from
Oct 13, 2023
Merged

Conversation

donaldsharp
Copy link
Member

See individual commits. Make unequal weighted costs controlled by zebra and normalize the values between 1 and 255. Modify bgp to pass down the unweighted costs.

This will allow other protocols to take advantage of the same process.

Copy link
Contributor

@mjstapp mjstapp left a comment

Choose a reason for hiding this comment

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

Had a couple of questions

zebra/zapi_msg.c Outdated Show resolved Hide resolved
zebra/zapi_msg.c Outdated Show resolved Hide resolved
zebra/zapi_msg.c Outdated Show resolved Hide resolved
zebra/zebra_router.c Outdated Show resolved Hide resolved
@ton31337
Copy link
Member

Maybe we can have a test case to see how it works?

@donaldsharp donaldsharp force-pushed the zebra_weighted_ecmp branch 2 times, most recently from e43c042 to 93505a4 Compare October 12, 2023 16:32
@frrbot frrbot bot added the tests Topotests, make check, etc label Oct 12, 2023
Currently underlying asics get into a bit of trouble when the
nexthop weight passed down varies wildly between the different
numbers.  Let's normalize the weight values between 1 and 255

Signed-off-by: Donald Sharp <[email protected]>
The weight scale value might be useful to have it
change it's behavior at a later time or controlled
by something depending on how FRR is compiled/ran.
Let's start that process

Signed-off-by: Donald Sharp <[email protected]>
Instead of scaling the bandwith to something between 1 and 100, just
send down the bandwidth Available for the link.

Signed-off-by: Donald Sharp <[email protected]>
Old behavior was metric values between 1-100,
now we have metric values between 1-255.

Signed-off-by: Donald Sharp <[email protected]>
@donaldsharp
Copy link
Member Author

@ton31337 -> It already has a test case

@ton31337 ton31337 merged commit 0a8ce5f into FRRouting:master Oct 13, 2023
79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants