Skip to content

Next hop group attribute to specify if weights are achieved by repeating members or via the weighting support in the hardware.. - #2166

Open
erohsik wants to merge 2 commits into
opencomputeproject:masterfrom
erohsik:nhg-mp
Open

Next hop group attribute to specify if weights are achieved by repeating members or via the weighting support in the hardware..#2166
erohsik wants to merge 2 commits into
opencomputeproject:masterfrom
erohsik:nhg-mp

Conversation

@erohsik

@erohsik erohsik commented Apr 23, 2025

Copy link
Copy Markdown
Contributor

Add new next hop group attribute to specify if a next hop group is programmed by repeating the next hop members in proportion to their weight or by using the intrinsic next hop group weight support in the hardware.

…ogrammed

by repeating the next hop members in proportion to their weight
or by using the intrinsic next hop group weight support in the hardware.

Signed-off-by: Kishore Gummadidala <kishorg@google.com>
@tjchadaga

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@rck-innovium rck-innovium left a comment

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.

Need more understanding so as to standardize the expected behavior.

Comment thread inc/sainexthopgroup.h Outdated
*
* @type bool
* @flags CREATE_AND_SET
* @default false

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.

The default value of "false" will NOT be backward compatible for devices that support Native WCMP.

The name of this attribute must be SAI_NEXT_HOP_GROUP_ATTR_DISABLE_NATIVE_WCMP with default value as False.

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.

@erohsik Kishore, Can you please add comment that NOS should query this attribute as supported or not.
And only if supported then we should make the default as true i.e. native WECP.

If platform doesn't support this attribute then WECMP works just the way today it is.

Comment thread inc/sainexthopgroup.h

/**
* @brief Weighted multi path configuration mode.
* false: Nexthop group is programmed with repeated member entries proportional to their weight

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.

When the SAI implementation repeats next hop group member entries, should the SAI_SWITCH_ATTR_AVAILABLE_NEXT_HOP_GROUP_MEMBER_ENTRY attribute be updated to reflect the count of the repeated entries, or should it be based on the number of unique members in the ASIC_DB?

@tjchadaga tjchadaga added the reviewed PR is discussed in SAI Meeting label Apr 28, 2025
@kcudnik

kcudnik commented May 23, 2025

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

Copy link
Copy Markdown
Collaborator

@erohsik - could you please help address the comments?

@JaiOCP JaiOCP left a comment

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.

Approving with the suggested comments

Comment thread inc/sainexthopgroup.h Outdated
*
* @type bool
* @flags CREATE_AND_SET
* @default false

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.

@erohsik Kishore, Can you please add comment that NOS should query this attribute as supported or not.
And only if supported then we should make the default as true i.e. native WECP.

If platform doesn't support this attribute then WECMP works just the way today it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed PR is discussed in SAI Meeting

6 participants