Skip to content

Commit 194dc69

Browse files
committed
Updated swss with latest from master
1 parent 784b85b commit 194dc69

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

orchagent/bufferorch.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,8 @@ task_process_status BufferOrch::processQueue(KeyOpFieldsValuesTuple &tuple)
859859
SWSS_LOG_DEBUG("processing queue:%zd", ind);
860860
if (gMySwitchType == "voq")
861861
{
862-
if (port.m_system_port_info.m_voq_ids.size() <= ind)
862+
std :: vector<sai_object_id_t> queue_ids = gPortOrch->getPortVoQIds(port);
863+
if (queue_ids.size() <= ind)
863864
{
864865
SWSS_LOG_ERROR("Invalid voq index specified:%zd", ind);
865866
return task_process_status::task_invalid_entry;
@@ -868,7 +869,8 @@ task_process_status BufferOrch::processQueue(KeyOpFieldsValuesTuple &tuple)
868869
if (need_update_sai)
869870
{
870871
sai_object_id_t queue_id;
871-
queue_id = port.m_system_port_info.m_voq_ids[ind];
872+
queue_id = queue_ids[ind];
873+
872874
SWSS_LOG_DEBUG("Applying buffer profile:0x%" PRIx64 " to queue index:%zd, queue sai_id:0x%" PRIx64, sai_buffer_profile, ind, queue_id);
873875
sai_status_t sai_status = sai_queue_api->set_queue_attribute(queue_id, &attr);
874876
if (sai_status != SAI_STATUS_SUCCESS)

orchagent/portsorch.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -7709,6 +7709,13 @@ bool PortsOrch::isMACsecPort(sai_object_id_t port_id) const
77097709
return m_macsecEnabledPorts.find(port_id) != m_macsecEnabledPorts.end();
77107710
}
77117711

7712+
vector<sai_object_id_t> PortsOrch::getPortVoQIds(const Port& port)
7713+
{
7714+
SWSS_LOG_ENTER();
7715+
7716+
return m_port_voq_ids[port.m_alias];
7717+
}
7718+
77127719
/* Refresh the per-port Auto-Negotiation operational states */
77137720
void PortsOrch::refreshPortStateAutoNeg(const Port &port)
77147721
{

orchagent/portsorch.h

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ class PortsOrch : public Orch, public Subject
179179

180180
void setMACsecEnabledState(sai_object_id_t port_id, bool enabled);
181181
bool isMACsecPort(sai_object_id_t port_id) const;
182+
vector<sai_object_id_t> getPortVoQIds(const Port& port);
182183

183184
private:
184185
unique_ptr<Table> m_counterTable;

0 commit comments

Comments
 (0)