Skip to content

[code sync] Merge code from sonic-net/sonic-swss:202605 to 202606 - #287

Merged
mssonicbld merged 2 commits into
Azure:202606from
mssonicbld:sonicbld/202606-merge
Aug 25, 2026
Merged

[code sync] Merge code from sonic-net/sonic-swss:202605 to 202606#287
mssonicbld merged 2 commits into
Azure:202606from
mssonicbld:sonicbld/202606-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* ba378eeb - (origin/202605) [routeorch] Remove Mellanox ECMP group count divisor workaround (#4838) (2026-08-24) [mssonicbld]<br>```

mssonicbld and others added 2 commits August 24, 2026 21:15
## Summary
- Remove the Mellanox-specific workaround in `routeorch.cpp` that divided `SAI_SWITCH_ATTR_NUMBER_OF_ECMP_GROUPS` by 32
- The vendor SDK now returns the true hardware ECMP group limit (4200) directly, making the divisor unnecessary
- With the divisor still applied, `m_maxNextHopGroupCount` is incorrectly set to 131 (4200/32), preventing the system from utilizing the full 4200 ECMP groups

## Background
The SDK previously returned the KVD size (~512K) for `SAI_SWITCH_ATTR_NUMBER_OF_ECMP_GROUPS`, assuming each ECMP group has only 1 member. The `/= 32` workaround compensated for this by estimating the real limit when the max group size is 32.

The SDK has since been fixed to return the actual hardware limit (4200) directly. With this fix applied, the `/= 32` workaround produces an artificially low value of 131, which causes:
- `MAX_NEXTHOP_GROUP_COUNT` in STATE_DB to be 131
- CRM test `test_crm_nexthop_group(group_member=True)` to fail because the system cannot create enough NHG entries during the pre-warm phase

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

* **Refactor**
 CODE_OF_CONDUCT.md LICENSE README.md SECURITY.md SUPPORT.md azure-pipelines failure_prs.log scripts skip_prs.log Removed platform-specific ECMP scaling so routing uses a single, consistent default ECMP group capacity across all platforms.
 CODE_OF_CONDUCT.md LICENSE README.md SECURITY.md SUPPORT.md azure-pipelines failure_prs.log scripts skip_prs.log Increased the fallback ECMP group capacity used when hardware-reported values are unavailable, improving default path capacity and making behavior more predictable.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld
mssonicbld merged commit 30fb8bd into Azure:202606 Aug 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant