Skip to content

Commit 6556b26

Browse files
sihuihan88lguohan
authored andcommitted
[aclorch]: only bind to port for ACL_TABLE_PFCWD type (sonic-net#561)
* [aclorch]: only bind to port for ACL_TABLE_PFCWD type Signed-off-by: Sihui Han <[email protected]> * make the code easier to read Signed-off-by: Sihui Han <[email protected]>
1 parent 1fdcec6 commit 6556b26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

orchagent/aclorch.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,11 @@ bool AclTable::create()
10231023
sai_attribute_t attr;
10241024
vector<sai_attribute_t> table_attrs;
10251025
vector<int32_t> bpoint_list = { SAI_ACL_BIND_POINT_TYPE_PORT, SAI_ACL_BIND_POINT_TYPE_LAG };
1026+
if (type == ACL_TABLE_PFCWD)
1027+
{
1028+
bpoint_list = { SAI_ACL_BIND_POINT_TYPE_PORT };
1029+
}
1030+
10261031
attr.id = SAI_ACL_TABLE_ATTR_ACL_BIND_POINT_TYPE_LIST;
10271032
attr.value.s32list.count = static_cast<uint32_t>(bpoint_list.size());
10281033
attr.value.s32list.list = bpoint_list.data();

0 commit comments

Comments
 (0)