Skip to content

Commit

Permalink
[PORTSORCH] Remove buffer drop counter when port is removed
Browse files Browse the repository at this point in the history
Signed-off-by: tomeri <[email protected]>
  • Loading branch information
tomer-israel committed Nov 10, 2021
1 parent 8119ec0 commit 7019a19
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2423,6 +2423,13 @@ void PortsOrch::deInitPort(string alias, sai_object_id_t port_id)
{
port_stat_manager.clearCounterIdList(p.m_port_id);
}

if (flex_counters_orch->getPortBufferDropCountersState())
{
port_buffer_drop_stat_manager.clearCounterIdList(p.m_port_id);
}


/* remove port name map from counter table */
m_counter_db->hdel(COUNTERS_PORT_NAME_MAP, alias);

Expand Down

0 comments on commit 7019a19

Please sign in to comment.