Skip to content

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

Closed
vivekrnv wants to merge 2 commits into
masterfrom
bulk_get_sess_notif
Closed

[DPU] [HA] Add support for Flow API#47
vivekrnv wants to merge 2 commits into
masterfrom
bulk_get_sess_notif

Conversation

@vivekrnv

@vivekrnv vivekrnv commented Jan 31, 2026

Copy link
Copy Markdown
Owner

What I did

HLD: https://github.com/sonic-net/SONiC/pull/2168

Depends on ??

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>
Comment thread orchagent/dash/dashhafloworch.cpp Outdated
task_process_status status = createSession();
if (status != task_success && status != task_need_retry)
{
clearKey();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should reset be called here to reset other global fields as well?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handled, remove clearKey altogether, only using reset() to clear state

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
@vivekrnv vivekrnv closed this Feb 14, 2026
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.

2 participants