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

[chassis][202405]: Remove default hash-offset for chassis-packet #19745

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

anamehra
Copy link
Contributor

@anamehra anamehra commented Jul 31, 2024

Signed-off-by: anamehra@cisco.com

Why I did it

Fixes #19746

switch.json in swss docker sets the default hash offset to 0 for chassis-packet. The change was recently introduced via #18912 which was supposed to be only for T0/T1. On chassis-packet, each asics needs to set an unique hash offset to set an unique offset for load balancing algorithm. The new change overwrites platform setting and resets the hash-offset to 0 on all asics. This breaks the ecmp load balancing algorithm on chassis-packet.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Remove the default hash-offset setting for chassis-packet. This setting is provided by platform based on platform specific rules.

How to verify it

Run sonic-mgmt fib/test_fib.py

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202405

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: anamehra <anamehra@cisco.com>
@anamehra anamehra changed the title Remove default hash-offset for chassis-packet [chassis][202405]: Remove default hash-offset for chassis-packet Jul 31, 2024
@anamehra anamehra marked this pull request as ready for review August 1, 2024 03:31
@anamehra anamehra requested a review from lguohan as a code owner August 1, 2024 03:31
@abdosi
Copy link
Contributor

abdosi commented Aug 1, 2024

/azp run ms_checker

Copy link

No pipelines are associated with this pull request.

@liushilongbuaa
Copy link
Contributor

/azpw ms_conflict -f

1 similar comment
@abdosi
Copy link
Contributor

abdosi commented Aug 15, 2024

/azpw ms_conflict -f

@yejianquan
Copy link
Contributor

/azp run Azure.sonic-buildimage

Copy link

Commenter does not have sufficient privileges for PR 19745 in repo sonic-net/sonic-buildimage

@StormLiangMS
Copy link
Contributor

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

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

LGTM

@wangxin wangxin merged commit f0979dd into sonic-net:master Sep 4, 2024
23 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Sep 4, 2024
Why I did it
Fixes sonic-net#19746

switch.json in swss docker sets the default hash offset to 0 for chassis-packet. The change was recently introduced via sonic-net#18912 which was supposed to be only for T0/T1. On chassis-packet, each asics needs to set an unique hash offset to set an unique offset for load balancing algorithm. The new change overwrites platform setting and resets the hash-offset to 0 on all asics. This breaks the ecmp load balancing algorithm on chassis-packet.

How I did it
Remove the default hash-offset setting for chassis-packet. This setting is provided by platform based on platform specific rules.

How to verify it
Run sonic-mgmt fib/test_fib.py

Signed-off-by: anamehra <anamehra@cisco.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #20126

mssonicbld pushed a commit that referenced this pull request Sep 5, 2024
Why I did it
Fixes #19746

switch.json in swss docker sets the default hash offset to 0 for chassis-packet. The change was recently introduced via #18912 which was supposed to be only for T0/T1. On chassis-packet, each asics needs to set an unique hash offset to set an unique offset for load balancing algorithm. The new change overwrites platform setting and resets the hash-offset to 0 on all asics. This breaks the ecmp load balancing algorithm on chassis-packet.

How I did it
Remove the default hash-offset setting for chassis-packet. This setting is provided by platform based on platform specific rules.

How to verify it
Run sonic-mgmt fib/test_fib.py

Signed-off-by: anamehra <anamehra@cisco.com>
vvolam pushed a commit to vvolam/sonic-buildimage that referenced this pull request Sep 12, 2024
Why I did it
Fixes sonic-net#19746

switch.json in swss docker sets the default hash offset to 0 for chassis-packet. The change was recently introduced via sonic-net#18912 which was supposed to be only for T0/T1. On chassis-packet, each asics needs to set an unique hash offset to set an unique offset for load balancing algorithm. The new change overwrites platform setting and resets the hash-offset to 0 on all asics. This breaks the ecmp load balancing algorithm on chassis-packet.

How I did it
Remove the default hash-offset setting for chassis-packet. This setting is provided by platform based on platform specific rules.

How to verify it
Run sonic-mgmt fib/test_fib.py

Signed-off-by: anamehra <anamehra@cisco.com>
@anamehra anamehra deleted the anamehra/t2_hash_offset branch October 5, 2024 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Archived in project
Development

Successfully merging this pull request may close these issues.

[chassis][202405]: Default hash-offset 0 causes ecmp load balancing failure on chassis-packet
7 participants