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

[hash]: Implement GH backend #2598

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Conversation

nazariig
Copy link
Collaborator

@nazariig nazariig commented Jan 4, 2023

Signed-off-by: Nazarii Hnydyn nazariig@nvidia.com

DEPENDS:

  1. [hash]: Add UT infra #2660
  2. [hash]: Add GH DB schema sonic-swss-common#733
  3. [hash]: Extend VS lib with ECMP/LAG hash sonic-sairedis#1192

HLD: sonic-net/SONiC#1101

What I did

  • Implemented Generic Hash feature

Why I did it

  • Implementation is done according to the Generic Hash HLD

How I verified it

  1. Run Generic Hash VS UTs

Details if related

  • N/A

@nazariig
Copy link
Collaborator Author

@prsunny could you please have a look?

@nazariig
Copy link
Collaborator Author

@prsunny just a kind reminder

3 similar comments
@nazariig
Copy link
Collaborator Author

@prsunny just a kind reminder

@nazariig
Copy link
Collaborator Author

nazariig commented Mar 9, 2023

@prsunny just a kind reminder

@nazariig
Copy link
Collaborator Author

@prsunny just a kind reminder

@nazariig
Copy link
Collaborator Author

nazariig commented May 9, 2023

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig
Copy link
Collaborator Author

@prsunny so what's the plan here? Are we going to continue the review?

orchagent/switch/swcap.cpp Outdated Show resolved Hide resolved
orchagent/switch/swcap.cpp Outdated Show resolved Hide resolved
orchagent/switch/swcnt.h Outdated Show resolved Hide resolved
orchagent/switch/swschema.h Outdated Show resolved Hide resolved
orchagent/switchorch.cpp Outdated Show resolved Hide resolved
orchagent/switchorch.cpp Outdated Show resolved Hide resolved
orchagent/switchorch.cpp Show resolved Hide resolved
orchagent/switchorch.cpp Outdated Show resolved Hide resolved
orchagent/switchorch.cpp Outdated Show resolved Hide resolved
orchagent/switchorch.cpp Show resolved Hide resolved
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@nazariig nazariig force-pushed the master-hash-rel branch 2 times, most recently from 6849bce to fd7aeb5 Compare June 1, 2023 19:27
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@nazariig
Copy link
Collaborator Author

nazariig commented Jun 2, 2023

@prsunny review comments have been addressed. Please have a look.

@nazariig
Copy link
Collaborator Author

nazariig commented Jun 7, 2023

@prsunny just a kind reminder

1 similar comment
@nazariig
Copy link
Collaborator Author

@prsunny just a kind reminder

@prsunny prsunny merged commit a67f684 into sonic-net:master Jun 26, 2023
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Jul 20, 2023
@StormLiangMS
Copy link
Contributor

new feature, no backport


sai_attribute_t attr;

attr.id = SAI_HASH_ATTR_NATIVE_HASH_FIELD_LIST;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have plan to support SAI_SWITCH_ATTR_ECMP_HASH_IPV4/SAI_SWITCH_ATTR_ECMP_HASH_IPV4_IN_IPV4/SAI_SWITCH_ATTR_ECMP_HASH_IPV6 /SAI_SWITCH_ATTR_LAG_HASH_IPV4/SAI_SWITCH_ATTR_LAG_HASH_IPV4_IN_IPV4/SAI_SWITCH_ATTR_LAG_HASH_IPV6 besides the default hash field list?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@baxia-lan no. Implementation is according to the HLD. Also, this topic was discussed during Community design review and folks agreed that it requires some HLD/SAI extension in order to support hashing for different types of encapsulated frames per ASIC vendor. In any case, currently no plans to work on it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the heads up. Could you please provide the pointer of the HLD discussion recording for these concerns? Also if possible, could you please help me to clarify the SAI extension needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@baxia-lan regarding the recording, please speak to @zhangyanzhao

StormLiangMS pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Jun 25, 2024
…13316)

What is the motivation for this PR?
These errors are found for config reload on 202311 branch on broadcom platform and safe to ignore.

These are from the change sonic-net/sonic-swss#2598.
r, ".* ERR swss#orchagent: :- queryHashNativeHashFieldListEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- queryHashNativeHashFieldListAttrCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchEcmpHashAlgorithmEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchLagHashAlgorithmEnumCapabilities: Failed to get attribute.*"

r, ".* ERR syncd\d*#syncd.SAI_API_PORT:_brcm_sai_read_fec_stat_err_counters. failed with error Feature unavailable.*"

How did you do it?
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 25, 2024
…onic-net#13316)

What is the motivation for this PR?
These errors are found for config reload on 202311 branch on broadcom platform and safe to ignore.

These are from the change sonic-net/sonic-swss#2598.
r, ".* ERR swss#orchagent: :- queryHashNativeHashFieldListEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- queryHashNativeHashFieldListAttrCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchEcmpHashAlgorithmEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchLagHashAlgorithmEnumCapabilities: Failed to get attribute.*"

r, ".* ERR syncd\d*#syncd.SAI_API_PORT:_brcm_sai_read_fec_stat_err_counters. failed with error Feature unavailable.*"

How did you do it?
mssonicbld pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Jun 25, 2024
…13316)

What is the motivation for this PR?
These errors are found for config reload on 202311 branch on broadcom platform and safe to ignore.

These are from the change sonic-net/sonic-swss#2598.
r, ".* ERR swss#orchagent: :- queryHashNativeHashFieldListEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- queryHashNativeHashFieldListAttrCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchEcmpHashAlgorithmEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchLagHashAlgorithmEnumCapabilities: Failed to get attribute.*"

r, ".* ERR syncd\d*#syncd.SAI_API_PORT:_brcm_sai_read_fec_stat_err_counters. failed with error Feature unavailable.*"

How did you do it?
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jul 4, 2024
…onic-net#13316)

What is the motivation for this PR?
These errors are found for config reload on 202311 branch on broadcom platform and safe to ignore.

These are from the change sonic-net/sonic-swss#2598.
r, ".* ERR swss#orchagent: :- queryHashNativeHashFieldListEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- queryHashNativeHashFieldListAttrCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchEcmpHashAlgorithmEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchLagHashAlgorithmEnumCapabilities: Failed to get attribute.*"

r, ".* ERR syncd\d*#syncd.SAI_API_PORT:_brcm_sai_read_fec_stat_err_counters. failed with error Feature unavailable.*"

How did you do it?
mssonicbld pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Jul 7, 2024
…13316)

What is the motivation for this PR?
These errors are found for config reload on 202311 branch on broadcom platform and safe to ignore.

These are from the change sonic-net/sonic-swss#2598.
r, ".* ERR swss#orchagent: :- queryHashNativeHashFieldListEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- queryHashNativeHashFieldListAttrCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchEcmpHashAlgorithmEnumCapabilities: Failed to get attribute."
r, ". ERR swss#orchagent: :- querySwitchLagHashAlgorithmEnumCapabilities: Failed to get attribute.*"

r, ".* ERR syncd\d*#syncd.SAI_API_PORT:_brcm_sai_read_fec_stat_err_counters. failed with error Feature unavailable.*"

How did you do it?
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.

6 participants