Skip to content

Commit

Permalink
DNX(J2/J2c/J2c+): Reserve Non-ECMP Fec Resource for Non-ECMP Route Ne…
Browse files Browse the repository at this point in the history
…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).
  • Loading branch information
deepak-singhal0408 committed Dec 17, 2022
1 parent 1fd2395 commit bf428fd
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/jr2-a7280cr3-32d4-40x100G.config.bcm
SAI_SWITCH_NON_ECMP_MAX_SIZE=3072
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/j2p-a7800r3a-36d-36x400G.config.bcm

SAI_SWITCH_NON_ECMP_MAX_SIZE=3072
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/j2p-a7800r3a-36d-36x400G.config.bcm

SAI_SWITCH_NON_ECMP_MAX_SIZE=3072
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/j2p-a7800r3a-36d-36x400G.config.bcm

SAI_SWITCH_NON_ECMP_MAX_SIZE=3072
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/jr2cp-nokia-18x100g-4x25g-config.bcm
SAI_SWITCH_NON_ECMP_MAX_SIZE=3072
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/jr2cp-nokia-18x100g-4x25g-config.bcm
SAI_SWITCH_NON_ECMP_MAX_SIZE=3072
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/jr2cp-nokia-18x400g-config.bcm
SAI_SWITCH_NON_ECMP_MAX_SIZE=3072
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/jr2cp-nokia-18x400g-config.bcm
SAI_SWITCH_NON_ECMP_MAX_SIZE=3072

0 comments on commit bf428fd

Please sign in to comment.