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

[BRCM-DNX(J2/J2c/J2c+)]:Reserve Non-ECMP Fec Resource for Non-ECMP Route Nexthops/NBR Entries #13076

Merged
merged 1 commit into from
Dec 17, 2022
Merged

[BRCM-DNX(J2/J2c/J2c+)]:Reserve Non-ECMP Fec Resource for Non-ECMP Route Nexthops/NBR Entries #13076

merged 1 commit into from
Dec 17, 2022

Conversation

deepak-singhal0408
Copy link
Contributor

@deepak-singhal0408 deepak-singhal0408 commented Dec 15, 2022

fixes #12608 by reserving NON_ECMP Fec entries for single path Nexthops/V4/v6NBR Entries.

Why I did it

On DNX (J2/J2c/J2c+) platforms, Single Path Nexthops and ECMp Nexthop resources(FECs) are shared. BRCM SAI do not have partition of this resource, and hence more single path Nexthop entries, causes ECMP programming to fail in scaled setup.

How I did it

Broadcom provided SAI changes to reserve resources for single path nexthop entries(More details in CSP: https://brcmsemiconductor-csm.wolkenservicedesk.com/wolken-support/allcases/request-details?requestId=CS00012251649).
Along with SAI changes, they provided configurable Macro/flag to reserve NON_ECMP entries.
This PR is to add that flag in various sai.profile files wherever applicable.

PS: We are reserving 3072 single path Nexthop entries on each Linecard. Calculation is as follows.
Max Slots per chassis: 8
Max No of Ports(each LC): 64
MyIP/Subnet Entries per port: 4(v4/v6)
Nbr Entries Per port: 2(v4/v6)

Total Non_ECMP Count: 8x64x(4+2) = 3072

How to verify it

Without this change, the ECMP group count will be shown as Max_count in 'crm show resources all' command, and with this change the ECMP group count will be decreased by 24(3072/128).

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

Since the change is applicable to BRCM DNX pltforms, it needs to go in 202205 branch which is being used for T2-Chassis.

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • [x ] 202205
  • 202211

#######UT########
The change has been verified on DNX(J2/j2c/J2c+) platforms..

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 15, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: deepak-singhal0408 / name: Deepak Singhal (fe6ca0b)

@deepak-singhal0408 deepak-singhal0408 self-assigned this Dec 16, 2022
@abdosi abdosi changed the title [202205][BRCM-DNX(J2/J2c/J2c+)]:Reserve Non-ECMP Fec Resource for Non-ECMP Route Nexthops/NBR Entries [BRCM-DNX(J2/J2c/J2c+)]:Reserve Non-ECMP Fec Resource for Non-ECMP Route Nexthops/NBR Entries Dec 16, 2022
@arlakshm
Copy link
Contributor

@deepak-singhal0408
Copy link
Contributor Author

@lguohan @yxieca Could you please help merge this PR.. Thanks..

@yxieca yxieca merged commit bf428fd into sonic-net:master Dec 17, 2022
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 17, 2022
…xthops/NBR Entries (sonic-net#13076)

Why I did it
On DNX (J2/J2c/J2c+) platforms, Single Path Nexthops and ECMp Nexthop resources(FECs) are shared. BRCM SAI do not have partition of this resource, and hence more single path Nexthop entries, causes ECMP programming to fail in scaled setup.

How I did it
Broadcom provided SAI changes to reserve resources for single path nexthop entries(More details in CSP: https://brcmsemiconductor-csm.wolkenservicedesk.com/wolken-support/allcases/request-details?requestId=CS00012251649).
Along with SAI changes, they provided configurable Macro/flag to reserve NON_ECMP entries.
This PR is to add that flag in various sai.profile files wherever applicable.

PS: We are reserving 3072 single path Nexthop entries on each Linecard. Calculation is as follows.
Max Slots per chassis: 8
Max No of Ports(each LC): 64
MyIP/Subnet Entries per port: 4(v4/v6)
Nbr Entries Per port: 2(v4/v6)

Total Non_ECMP Count: 8x64x(4+2) = 3072

How to verify it
Without this change, the ECMP group count will be shown as Max_count in 'crm show resources all' command, and with this change the ECMP group count will be decreased by 24(3072/128).
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #13089

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants