Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bufferpool] Support for buffer pool type both #1735

Merged
merged 2 commits into from
Jun 15, 2021
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
4 changes: 4 additions & 0 deletions orchagent/bufferorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ task_process_status BufferOrch::processBufferPool(KeyOpFieldsValuesTuple &tuple)
{
attr.value.u32 = SAI_BUFFER_POOL_TYPE_EGRESS;
}
else if (type == buffer_value_both)
{
attr.value.u32 = SAI_BUFFER_POOL_TYPE_BOTH;
}
else
{
SWSS_LOG_ERROR("Unknown pool type specified:%s", type.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 @@ -25,6 +25,7 @@ const string buffer_static_th_field_name = "static_th";
const string buffer_profile_field_name = "profile";
const string buffer_value_ingress = "ingress";
const string buffer_value_egress = "egress";
const string buffer_value_both = "both";
const string buffer_profile_list_field_name = "profile_list";
const string buffer_headroom_type_field_name= "headroom_type";

Expand Down