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: Allow dplane to pass larger number of nexthops down to dataplane #17023

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

donaldsharp
Copy link
Member

Currently FRR is limiting the nexthop count to a uint8_t not a uint16_t. This leads to issues when the nexthop count is 256 which results in the count to overflow to 0 causing problems in the code.

@frrbot frrbot bot added the zebra label Oct 7, 2024
@donaldsharp donaldsharp force-pushed the dplane_problems branch 2 times, most recently from f2d5f42 to 9790fa1 Compare October 7, 2024 17:32
@github-actions github-actions bot added size/M and removed size/XS labels Oct 7, 2024
@donaldsharp donaldsharp force-pushed the dplane_problems branch 2 times, most recently from 089db7b to b501ac2 Compare October 7, 2024 20:57
@github-actions github-actions bot added size/L and removed size/M labels Oct 7, 2024
bgpd/bgp_attr.h Outdated
@@ -251,7 +251,7 @@ struct attr {
as_t aggregator_as;

/* MP Nexthop length */
uint8_t mp_nexthop_len;
uint16_t mp_nexthop_len;
Copy link
Member

Choose a reason for hiding this comment

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

Why is this needed? This can't be higher than 48 bytes overall (assuming it's encoded as global + link-local for vpnv6).

Copy link
Member Author

Choose a reason for hiding this comment

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

your right I just assumed it was. Sorry, removed

Currently FRR is limiting the nexthop count to a uint8_t not a
uint16_t.  This leads to issues when the nexthop count is 256
which results in the count to overflow to 0 causing problems
in the code.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Copy link
Member

@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

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

looks good

@riw777 riw777 merged commit b8c4586 into FRRouting:master Oct 8, 2024
11 checks passed
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