Skip to content

Commit

Permalink
[pfcwd]: update counters of queues associated with handler when pfcwd…
Browse files Browse the repository at this point in the history
… stops (sonic-net#459)

* [pfcwd]: update counters for queues associated with handler when pfcwd stops

Signed-off-by: Sihui Han <[email protected]>

* update as comments
  • Loading branch information
sihuihan88 authored Mar 28, 2018
1 parent d4ab3ee commit e217519
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions orchagent/pfcwdorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,13 @@ void PfcWdSwOrch<DropHandler, ForwardHandler>::unregisterFromWdDb(const Port& po

// Unregister in syncd
m_flexCounterTable->del(key);

auto entry = m_entryMap.find(queueId);
if (entry != m_entryMap.end() && entry->second.handler != nullptr)
{
entry->second.handler->commitCounters();
}

m_entryMap.erase(queueId);

// Clean up
Expand Down

0 comments on commit e217519

Please sign in to comment.