Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PFCWD recovery changes using DLR_INIT
Browse files Browse the repository at this point in the history
vmittal-msft committed Jul 28, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 243d0c4 commit 8c5d31e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/mock_tests/portsorch_ut.cpp
Original file line number Diff line number Diff line change
@@ -1042,6 +1042,13 @@ namespace portsorch_test
Port port;
gPortsOrch->getPort("Ethernet0", port);

auto countersTable = make_shared<Table>(m_counters_db.get(), COUNTERS_TABLE);
auto dropHandler = make_unique<PfcWdDlrHandler>(port.m_port_id, port.m_queue_ids[3], 3, countersTable);
ASSERT_TRUE(_sai_set_queue_attr_count == 1);

//dropHandler.reset();
//ASSERT_FALSE(_sai_set_queue_attr_count == 1);
#if 0
// Create test buffer pool
poolTable.set(
"ingress_pool",
@@ -1082,13 +1089,7 @@ namespace portsorch_test

// process pool, profile and PGs
static_cast<Orch *>(gBufferOrch)->doTask();

auto countersTable = make_shared<Table>(m_counters_db.get(), COUNTERS_TABLE);
auto dropHandler = make_unique<PfcWdDlrHandler>(port.m_port_id, port.m_queue_ids[3], 3, countersTable);
ASSERT_TRUE(_sai_set_queue_attr_count == 1);

//dropHandler.reset();
//ASSERT_FALSE(_sai_set_queue_attr_count == 1);
#endif

_unhook_sai_queue_api();
}

0 comments on commit 8c5d31e

Please sign in to comment.