Skip to content

NHG with Unequal Cost Members#2302

Open
JaiOCP wants to merge 1 commit into
opencomputeproject:masterfrom
JaiOCP:wecmp
Open

NHG with Unequal Cost Members#2302
JaiOCP wants to merge 1 commit into
opencomputeproject:masterfrom
JaiOCP:wecmp

Conversation

@JaiOCP

@JaiOCP JaiOCP commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR brings in support for high performant fabric where NHG is created with prior information about the members with weights.

NOS can use sai_query_attribute_capability() to find out if the platform supports such behavior or not. Legacy implementation will always return the status as not supported attribute.

Comment thread inc/sainexthopgroup.h
* @flags CREATE_AND_SET
* @default false
*/
SAI_NEXT_HOP_GROUP_ATTR_MEMBERS_WITH_UNEQUAL_WEIGHTS,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@JaiOCP, what is the additional benefit of querying this capability?

If NOS is configured to program unequal paths, NOS can directly add those members to the NHG with the required weights, right? I believe we don't need any additional hardware capability/support to handle unequal-cost paths in this case.

Please let me know if I am missing any specific use case where this capability is required.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For the legacy implementation, yes.
For newer implementation where there is a dedicated resource for weight NHG vs unweighted NHG, we need to differentiate the NHG during NHG create.
Now you can make an argument that why not a new NHG type instead of a bool. Problem with that approach is that NHG may be of any type with members as wieghted or unweighted. Hence the introduction of a new bool attribute.

@JaiOCP

JaiOCP commented Jun 23, 2026 via email

Copy link
Copy Markdown
Contributor Author

Signed-off-by: JaiOCP <jai.kumar@broadcom.com>

NHG with UECMP

Signed-off-by: JaiOCP <jai.kumar@broadcom.com>
@tjchadaga

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

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.

3 participants