Skip to content

Conversation

mjstapp
Copy link
Contributor

@mjstapp mjstapp commented Jan 27, 2025

Ensure that the nhg hash comparison function includes all nexthops, including recursive-resolving nexthops.
We discovered that the hash key computation does include the full recursion list, but this "equals" function did not, and that can lead to errors...

Ensure that the nhg hash comparison function includes all
nexthops, including recursive-resolving nexthops.

Signed-off-by: Mark Stapp <mjs@cisco.com>
Currently FRR does not handle v6 recurisive resolution properly
when the route being recursed through changes and the most
significant bits of the route are not changed.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
@frrbot frrbot bot added the tests Topotests, make check, etc label Jan 28, 2025
@github-actions github-actions bot added size/L and removed size/XS labels Jan 28, 2025
@mjstapp
Copy link
Contributor Author

mjstapp commented Jan 28, 2025

I've added Donald Sharp's topotest that exercises v6 resolution to this PR so that we include it.

@donaldsharp donaldsharp merged commit f849511 into FRRouting:master Jan 29, 2025
15 checks passed
@eqvinox
Copy link
Contributor

eqvinox commented Feb 11, 2025

@Mergifyio backport dev/10.3 stable/10.2 stable/10.1 stable/10.0 stable/9.1 stable/8.4

Copy link

mergify bot commented Feb 11, 2025

backport dev/10.3 stable/10.2 stable/10.1 stable/10.0 stable/9.1 stable/8.4

✅ Backports have been created

Jafaral added a commit that referenced this pull request Feb 11, 2025
zebra: include resolving nexthops in nhg hash (backport #17935)
donaldsharp added a commit that referenced this pull request Feb 12, 2025
zebra: include resolving nexthops in nhg hash (backport #17935)
donaldsharp added a commit that referenced this pull request Feb 12, 2025
zebra: include resolving nexthops in nhg hash (backport #17935)
donaldsharp added a commit that referenced this pull request Feb 12, 2025
zebra: include resolving nexthops in nhg hash (backport #17935)
donaldsharp added a commit that referenced this pull request Feb 12, 2025
zebra: include resolving nexthops in nhg hash (backport #17935)
@mjstapp mjstapp deleted the fix_nhg_hash_equal branch April 24, 2025 20:59
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