Skip to content

Commit

Permalink
Fixed orchagent crash in VM with the Qos BUFFER_QUEUE|system-port|Que…
Browse files Browse the repository at this point in the history
…ue-id-range config (sonic-net#3050)

* Fixed orchagent crash in VM with the Qos BUFFER_QUEUE|system-port|Queue-id-range config
  • Loading branch information
saksarav-nokia authored and cscarpitta committed Apr 5, 2024
1 parent f060343 commit 919de49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions orchagent/bufferorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -966,8 +966,10 @@ task_process_status BufferOrch::processQueue(KeyOpFieldsValuesTuple &tuple)
return handle_status;
}
}
// create/remove a port queue counter for the queue buffer
else
// create/remove a port queue counter for the queue buffer.
// For VOQ chassis, flexcounterorch adds the Queue Counters for all egress and VOQ queues of all front panel and system ports
// to the FLEX_COUNTER_DB irrespective of BUFFER_QUEUE configuration. So Port Queue counter needs to be updated only for non VOQ switch.
else if (gMySwitchType != "voq")
{
auto flexCounterOrch = gDirectory.get<FlexCounterOrch*>();
auto queues = tokens[1];
Expand Down

0 comments on commit 919de49

Please sign in to comment.