Skip to content

Conversation

@maxime-leroy
Copy link
Collaborator

No description provided.

frr/if_grout.c Outdated
Comment on lines 49 to 52
const struct gr_iface_info_port *gr_port = NULL;
ifindex_t link_ifindex = IFINDEX_INTERNAL;
const struct rte_ether_addr *mac = NULL;
uint32_t txqlen = 1000;
uint32_t speed = 0, txqlen = 1000;

Choose a reason for hiding this comment

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

Variable txqlen is initialized but never used; consider removing it or invoking the appropriate dplane helper to set TX queue length.

frr/if_grout.c Outdated
Comment on lines 96 to 101
dplane_ctx_set_intf_txqlen(ctx, txqlen);

if (new) {
dplane_ctx_set_ifp_speed_set(ctx, true);

Choose a reason for hiding this comment

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

Calling dplane_ctx_set_ifp_speed_set(ctx, true) unconditionally will disable kernel polling even when gr_port->base.link_speed is unset (UINT32_MAX) and speed remains 0; restrict setting speed_set to the valid‐speed case.

@maxime-leroy maxime-leroy marked this pull request as draft August 14, 2025 12:55
frr/if_grout.c Outdated
Comment on lines 49 to 52
const struct gr_iface_info_port *gr_port = NULL;
ifindex_t link_ifindex = IFINDEX_INTERNAL;
const struct rte_ether_addr *mac = NULL;
uint32_t txqlen = 1000;
uint32_t speed = 0, txqlen = 1000;

Choose a reason for hiding this comment

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

txqlen is declared but never used; either remove it or invoke the appropriate dplane_ctx_set_intf_txqlen(ctx, txqlen) call.

@coderabbitai
Copy link

coderabbitai bot commented Sep 5, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Use the new dplane setters dplane_ctx_set_ifp_speed() and
dplane_ctx_set_ifp_speed_set() to pass interface link speed to zebra.

This depends on a not-yet-merged zebra dplane API, so this commit is for
local testing only and must not be merged until the upstream API lands.

Signed-off-by: Maxime Leroy <[email protected]>
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.

1 participant