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

Add sai_query_attribute_enum_values_capability_ext #1766

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
22 changes: 22 additions & 0 deletions inc/saiobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,28 @@ sai_status_t sai_query_attribute_enum_values_capability(
_In_ sai_attr_id_t attr_id,
_Inout_ sai_s32_list_t *enum_values_capability);

/**
* @brief Query an enum attribute (enum or enum list) list of implemented enum values given additional input attribute values
*
* Used to query capabilities in case the queried attribute capability is dependent on other attribute values
*
* @param[in] switch_id SAI Switch object id
* @param[in] object_type SAI object type
* @param[in] attr_id SAI attribute ID
* @param[in] additional_attr_count Number of additional attribute values
* @param[in] additional_attr_list List of attribute values
* @param[inout] enum_values_capability List of implemented enum values
*
* @return #SAI_STATUS_SUCCESS on success, #SAI_STATUS_BUFFER_OVERFLOW if list size insufficient, failure status code on error
*/
sai_status_t sai_query_attribute_enum_values_capability_ext(
_In_ sai_object_id_t switch_id,
_In_ sai_object_type_t object_type,
_In_ sai_attr_id_t attr_id,
_In_ uint32_t additional_attr_count,
_In_ const sai_attribute_t *additional_attr_list,
_Inout_ sai_s32_list_t *enum_values_capability);

/**
* @brief Query statistics capability for statistics bound at object level
*
Expand Down
2 changes: 1 addition & 1 deletion meta/style.pm
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ sub CheckHeadersStyle
{
my $param = $1;

my $pattern = '^(attr_count|object_count|number_of_counters|count|u32|device_addr|start_reg_addr|number_of_registers|reg_val)$';
my $pattern = '^(attr_count|object_count|number_of_counters|count|u32|device_addr|start_reg_addr|number_of_registers|reg_val|additional_attr_count)$';

if (not $param =~ /$pattern/)
{
Expand Down