Skip to content

[code sync] Merge code from sonic-net/sonic-sairedis:202511 to 202603#128

Merged
mssonicbld merged 2 commits into
Azure:202603from
mssonicbld:sonicbld/202603-merge
Apr 30, 2026
Merged

[code sync] Merge code from sonic-net/sonic-sairedis:202511 to 202603#128
mssonicbld merged 2 commits into
Azure:202603from
mssonicbld:sonicbld/202603-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* 3b06d2d0 - (origin/202511) [syncd] Fix PORT_PHY_ATTR::collectData to check initAttrData return value (#1872) (2026-04-29) [mssonicbld]<br>```

mssonicbld and others added 2 commits April 29, 2026 17:13
…alue (#1872)

#### Why I did it
PORT_PHY_ATTR::collectData in FlexCounter.cpp calls `initAttrData` without checking its return value. When Broadcom SAI does not support attributes like `SAI_PORT_ATTR_RX_SIGNAL_DETECT` (attribute 149), the subsequent `sai_get` call fails with `Feature unavailable (0xfffffff0)`, generating ERR-level syslog entries every ~10 seconds (FlexCounter polling interval).

This causes **all tests using loganalyzer** to fail at teardown on Arista-7260CX3 (Broadcom) platforms. On 202511 image `20251110.20`, this produced **8,700+ test failures**.

The regression is triggered by the combination of:
- sonic-sairedis #1674 / #1785 (adds PORT_PHY_ATTR FlexCounter polling support)
- sonic-swss #4223 / #4407 (activates PORT_PHY_ATTR polling via FLEX_COUNTER_DB entries)

A partial fix was applied in #1799 / #1815 for PORT_PHY_SERDES_ATTR::collectData, but the same fix was **not** applied to PORT_PHY_ATTR::collectData.

#### How I did it
- Changed `initAttrData` return type from `void` to `bool`
- Each switch case now returns `true` on success, error paths return `false`
- In `collectData`, check the return value of `initAttrData` in the init loop
- If any attribute initialization fails, log a WARN and skip the entire object (`continue`)
- This matches the pattern already used in PORT_PHY_SERDES_ATTR::collectData (fixed by #1799)

#### How to verify it
1. Deploy on an Arista-7260CX3 (Broadcom) testbed with 202511 image
2. Verify no more `RX signal detect` ERR syslog entries from syncd
3. Run any test with loganalyzer enabled — teardown should pass

#### Related PRs
- #1674 — PORT_PHY_ATTR flex counter support (master)
- #1785 — cherry-pick to 202511
- #1799 — Partial fix for PORT_PHY_SERDES_ATTR (master)
- #1815 — cherry-pick of #1799 to 202511
- #1855 — Same fix targeting 202511 branch
- sonic-swss #4223 / #4407 — Activation trigger

#### ADO Reference
- Microsoft ADO PBI: 37325902
- Arista issue: https://github.com/aristanetworks/sonic-qual.msft/issues/1232
- Public tracking: sonic-net/sonic-mgmt#24023

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@mssonicbld
mssonicbld merged commit 562d7f9 into Azure:202603 Apr 30, 2026
3 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