Skip to content

Commit

Permalink
make the code easier to read
Browse files Browse the repository at this point in the history
Signed-off-by: Sihui Han <sihan@microsoft.com>
  • Loading branch information
Sihui Han committed Aug 3, 2018
1 parent 35ba30e commit 401d619
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion orchagent/aclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,12 @@ bool AclTable::create()

sai_attribute_t attr;
vector<sai_attribute_t> table_attrs;
vector<int32_t> bpoint_list = type == ACL_TABLE_PFCWD ? { SAI_ACL_BIND_POINT_TYPE_PORT} : { SAI_ACL_BIND_POINT_TYPE_PORT, SAI_ACL_BIND_POINT_TYPE_LAG };
vector<int32_t> bpoint_list = { SAI_ACL_BIND_POINT_TYPE_PORT, SAI_ACL_BIND_POINT_TYPE_LAG };
if (type == ACL_TABLE_PFCWD)
{
bpoint_list = { SAI_ACL_BIND_POINT_TYPE_PORT };
}

attr.id = SAI_ACL_TABLE_ATTR_ACL_BIND_POINT_TYPE_LIST;
attr.value.s32list.count = static_cast<uint32_t>(bpoint_list.size());
attr.value.s32list.list = bpoint_list.data();
Expand Down

0 comments on commit 401d619

Please sign in to comment.