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

Add OifIndex option for RouteGetWithOptions #1060

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

Conversation

dylandreimerink
Copy link
Contributor

The RouteGetWithOptions function currently has a Oif option which gets translated from link name to link index via a LinkByName call. This adds unnecessary overhead when the link index is already known.

This commit adds a new OifIndex option to RouteGetWithOptions which can be specified instead of Oif to skip the internal link index translation.

The `RouteGetWithOptions` function currently has a `Oif` option which
gets translated from link name to link index via a `LinkByName` call.
This adds unnecessary overhead when the link index is already known.

This commit adds a new `OifIndex` option to `RouteGetWithOptions` which
can be specified instead of `Oif` to skip the internal link index
translation.

Signed-off-by: Dylan Reimerink <[email protected]>
@dylandreimerink dylandreimerink marked this pull request as ready for review February 18, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants