Skip to content

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

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

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

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* 27a828e1 - (origin/202511) [syncd]: Fall back to TCP connection when unix socket path is not defined (#1877) (2026-05-04) [mssonicbld]<br>```

mssonicbld and others added 2 commits May 4, 2026 13:13
…ined (#1877)

## Description
When FlexCounter connects to COUNTERS_DB, it previously always used a unix socket connection. If the target database has no unix socket path configured, this would fail (e.g. syncd is running on a DPU and the target DB is in the remote redis instance on the NPU, the remote redis instance is only reachable via TCP connection)

## Changes
- At `FlexCounter` construction time, check `SonicDBConfig::getDbSock()` for the target DB. If the socket path is empty, set `m_isTcpConn = true`.
- Pass `m_isTcpConn` to all 6 `DBConnector` instantiation sites across `FlexCounter` and its counter context classes (`PortPhyAttrContext`, `PortPhySerdesAttrContext`, `DashMeterCounterContext`).

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@mssonicbld
mssonicbld merged commit 50340ab into Azure:202603 May 5, 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