Skip to content

ip,ip6: allow configuring default FIB size#535

Open
rjarry wants to merge 1 commit intoDPDK:mainfrom
rjarry:fib-size-default
Open

ip,ip6: allow configuring default FIB size#535
rjarry wants to merge 1 commit intoDPDK:mainfrom
rjarry:fib-size-default

Conversation

@rjarry
Copy link
Collaborator

@rjarry rjarry commented Mar 6, 2026

The default max_routes for new VRFs was previously set via the GROUT_MAX_ROUTES_DEFAULT environment variable, parsed at init time. Replace this with a runtime API option by accepting "default" in place of a VRF name in the route config set command. When vrf_id is GR_VRF_ID_UNDEF, the handler updates the default max_routes used for subsequently created VRFs instead of reconfiguring an existing one.

This also removes the parse_uint call from route4_init/route6_init and the GROUT_MAX_ROUTES_DEFAULT env var from smoke tests, replacing it with "grcli route config set default rib4-routes 128 rib6-routes 128".

Summary by CodeRabbit

  • New Features

    • Added support for specifying "default" VRF context in route configuration commands.
    • Routes can now be configured with default settings via CLI.
    • Configuration output now displays "default" designation for default VRF entries.
  • Bug Fixes

    • Fixed handling of optional RIB routes parameters in configuration.
  • Documentation

    • Updated help text with generic FIB capacity descriptions.

The default max_routes for new VRFs was previously set via the
GROUT_MAX_ROUTES_DEFAULT environment variable, parsed at init time.
Replace this with a runtime API option by accepting "default" in place
of a VRF name in the route config set command. When vrf_id is
GR_VRF_ID_UNDEF, the handler updates the default max_routes used for
subsequently created VRFs instead of reconfiguring an existing one.

This also removes the parse_uint call from route4_init/route6_init and
the GROUT_MAX_ROUTES_DEFAULT env var from smoke tests, replacing it
with "grcli route config set default rib4-routes 128 rib6-routes 128".

Signed-off-by: Robin Jarry <rjarry@redhat.com>
@coderabbitai

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

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