Skip to content

[DPU] [HA] Add support for Flow API#4218

Open
vivekrnv wants to merge 11 commits intosonic-net:masterfrom
vivekrnv:bulk_get_sess_notif
Open

[DPU] [HA] Add support for Flow API#4218
vivekrnv wants to merge 11 commits intosonic-net:masterfrom
vivekrnv:bulk_get_sess_notif

Conversation

@vivekrnv
Copy link
Copy Markdown
Contributor

What I did

HLD: sonic-net/SONiC#2168

Depends on
sonic-net/sonic-sairedis#1769
sonic-net/sonic-swss-common#1151

Why I did it

How I verified it

UT's and applied session config and verified the FINISHED, TImeout and StateDb update events

vkarri@4afe9d3ee71a:/sonic/src/sonic-swss/tests/mock_tests$ ./tests --gtest_filter="*DashHaFlowOrchTest*"
Running main() from ./googletest/src/gtest_main.cc
Note: Google Test filter = *DashHaFlowOrchTest*
[==========] Running 15 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 15 tests from DashHaFlowOrchTest
[ RUN      ] DashHaFlowOrchTest.CreateRemoveFlowSyncSession
[       OK ] DashHaFlowOrchTest.CreateRemoveFlowSyncSession (19 ms)
[ RUN      ] DashHaFlowOrchTest.CreateFlowSyncSessionMissingFields
[       OK ] DashHaFlowOrchTest.CreateFlowSyncSessionMissingFields (16 ms)
[ RUN      ] DashHaFlowOrchTest.CreateFlowDumpSessionWithFilters
[       OK ] DashHaFlowOrchTest.CreateFlowDumpSessionWithFilters (16 ms)
[ RUN      ] DashHaFlowOrchTest.CreateFlowDumpSessionWaitingForFilters
[       OK ] DashHaFlowOrchTest.CreateFlowDumpSessionWaitingForFilters (16 ms)
[ RUN      ] DashHaFlowOrchTest.DuplicateSessionCreation
[       OK ] DashHaFlowOrchTest.DuplicateSessionCreation (16 ms)
[ RUN      ] DashHaFlowOrchTest.CreateFlowSyncSessionSAIFailure
[       OK ] DashHaFlowOrchTest.CreateFlowSyncSessionSAIFailure (16 ms)
[ RUN      ] DashHaFlowOrchTest.CreateFlowDumpSessionSAIFailure
[       OK ] DashHaFlowOrchTest.CreateFlowDumpSessionSAIFailure (16 ms)
[ RUN      ] DashHaFlowOrchTest.CreateFlowDumpFilterInvalidKey
[       OK ] DashHaFlowOrchTest.CreateFlowDumpFilterInvalidKey (16 ms)
[ RUN      ] DashHaFlowOrchTest.CreateFlowDumpFilterInvalidOp
[       OK ] DashHaFlowOrchTest.CreateFlowDumpFilterInvalidOp (38 ms)
[ RUN      ] DashHaFlowOrchTest.RemoveFlowDumpFilter
[       OK ] DashHaFlowOrchTest.RemoveFlowDumpFilter (16 ms)
[ RUN      ] DashHaFlowOrchTest.HandleFinishedBulkSyncSession
[       OK ] DashHaFlowOrchTest.HandleFinishedBulkSyncSession (16 ms)
[ RUN      ] DashHaFlowOrchTest.HandleTimeoutBulkSyncSession
[       OK ] DashHaFlowOrchTest.HandleTimeoutBulkSyncSession (16 ms)
[ RUN      ] DashHaFlowOrchTest.HandleFinishedFlowDumpSession
[       OK ] DashHaFlowOrchTest.HandleFinishedFlowDumpSession (16 ms)
[ RUN      ] DashHaFlowOrchTest.HandleTimeoutFlowDumpSession
[       OK ] DashHaFlowOrchTest.HandleTimeoutFlowDumpSession (16 ms)
[ RUN      ] DashHaFlowOrchTest.CreateBothFlowDumpAndBulkSyncSessions
[       OK ] DashHaFlowOrchTest.CreateBothFlowDumpAndBulkSyncSessions (16 ms)
[----------] 15 tests from DashHaFlowOrchTest (268 ms total)

[----------] Global test environment tear-down
[==========] 15 tests from 1 test suite ran. (268 ms total)
[  PASSED  ] 15 tests.

Details if related

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
@vivekrnv vivekrnv requested a review from prsunny as a code owner February 14, 2026 00:59
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

dgsudharsan
dgsudharsan previously approved these changes Feb 18, 2026
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

vivekrnv added a commit to vivekrnv/sonic-swss that referenced this pull request Mar 6, 2026
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@vivekrnv
Copy link
Copy Markdown
Contributor Author

We are seeing occasional (30-50%) ASAN failure in p4orch tests. Not related to these changes but documenting here

AIL: p4orch_tests
===========================================================
   sonic-swss 1.0: orchagent/p4orch/tests/test-suite.log
===========================================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: p4orch_tests
==================

AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
FAIL p4orch_tests (exit status: 139)

@vivekrnv
Copy link
Copy Markdown
Contributor Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Copy Markdown
Collaborator

⚠️ Notice: /azpw run only runs failed jobs now. If you want to trigger a whole pipline run, please rebase your branch or close and reopen the PR.
💡 Tip: You can also use /azpw retry to retry failed jobs directly.

Retrying failed(or canceled) jobs...

@mssonicbld
Copy link
Copy Markdown
Collaborator

Retrying failed(or canceled) stages in build 1069486:
✅Stage BuildAsan:

  • Job amd64: retried.

vivekrnv added a commit to vivekrnv/sonic-swss that referenced this pull request Mar 25, 2026
vivekrnv added a commit to vivekrnv/sonic-swss that referenced this pull request Mar 25, 2026
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@vivekrnv
Copy link
Copy Markdown
Contributor Author

/azpw retry

@mssonicbld
Copy link
Copy Markdown
Collaborator

Retrying failed(or canceled) jobs...

@mssonicbld
Copy link
Copy Markdown
Collaborator

Retrying failed(or canceled) stages in build 1071379:

✅Stage BuildAsan:

  • Job amd64: retried.

✅Stage Test:

  • Job vstest: retried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants