Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions orchagent/bufferorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ task_process_status BufferOrch::processBufferPool(Consumer &consumer)
attr.id = SAI_BUFFER_POOL_ATTR_THRESHOLD_MODE;
attribs.push_back(attr);
}
else if (field == buffer_pool_xoff_field_name)
{
attr.value.u32 = (uint32_t)stoul(value);
attr.id = SAI_BUFFER_POOL_ATTR_XOFF_SIZE;
attribs.push_back(attr);
}
else
{
SWSS_LOG_ERROR("Unknown pool field specified:%s, ignoring", field.c_str());
Expand Down
1 change: 1 addition & 0 deletions orchagent/bufferorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const string buffer_pool_mode_field_name = "mode";
const string buffer_pool_field_name = "pool";
const string buffer_pool_mode_dynamic_value = "dynamic";
const string buffer_pool_mode_static_value = "static";
const string buffer_pool_xoff_field_name = "xoff";
const string buffer_xon_field_name = "xon";
const string buffer_xoff_field_name = "xoff";
const string buffer_dynamic_th_field_name = "dynamic_th";
Expand Down