Skip to content

Commit

Permalink
orchagent: Adding SAI_ACL_TABLE_ATTR_BIND_POINT when creating ACL tab…
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng committed Jan 11, 2017
1 parent 677e926 commit 1bd4240
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions orchagent/qosorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,11 @@ sai_object_id_t QosOrch::initSystemAclTable()
sai_object_id_t acl_table_id;
sai_status_t status;

// create system acl table
/* Create system ACL table */
attr.id = SAI_ACL_TABLE_ATTR_BIND_POINT;
attr.value.s32 = SAI_ACL_BIND_POINT_SWITCH;
attrs.push_back(attr);

attr.id = SAI_ACL_TABLE_ATTR_STAGE;
attr.value.s32 = SAI_ACL_STAGE_INGRESS;
attrs.push_back(attr);
Expand All @@ -624,12 +628,12 @@ sai_object_id_t QosOrch::initSystemAclTable()
status = sai_acl_api->create_acl_table(&acl_table_id, attrs.size(), &attrs[0]);
if (status == SAI_STATUS_SUCCESS)
{
SWSS_LOG_NOTICE("Successfully created ACL table for ECN coloring");
SWSS_LOG_NOTICE("Create system ACL table for ECN coloring");
}
else
{
SWSS_LOG_ERROR("create system acl table. sai_acl_api->create_acl_table failed: %d", status);
throw runtime_error("Failed to create system acl table");
SWSS_LOG_ERROR("Failed to create system ACL table. sai_acl_api->create_acl_table failed: %d", status);
throw runtime_error("Failed to create system ACL table");
}

return acl_table_id;
Expand Down

0 comments on commit 1bd4240

Please sign in to comment.