Skip to content

Commit

Permalink
Revert "sonic-swss: Fix orchagent crash in generateQueueMapPerPort. (#…
Browse files Browse the repository at this point in the history
…2552)"

This reverts commit 2904d95.
  • Loading branch information
yxieca committed Jan 5, 2023
1 parent 4897e93 commit 7b3170a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6008,9 +6008,7 @@ void PortsOrch::generateQueueMapPerPort(const Port& port, FlexCounterQueueStates
uint8_t queueRealIndex = 0;
if (getQueueTypeAndIndex(port.m_queue_ids[queueIndex], queueType, queueRealIndex))
{
/* voq counters are always enabled. There is no mechanism to disable voq
* counters in a voq system. */
if (!voq && !queuesState.isQueueCounterEnabled(queueRealIndex))
if (!queuesState.isQueueCounterEnabled(queueRealIndex))
{
continue;
}
Expand Down

0 comments on commit 7b3170a

Please sign in to comment.