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

Unify SAI_HOSTIF_USER_DEFINED_TRAP_TYPE_CUSTOM_RANGE_BASE value #2114

Open
wants to merge 1 commit 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
6 changes: 3 additions & 3 deletions inc/saihostif.h
Original file line number Diff line number Diff line change
Expand Up @@ -712,14 +712,14 @@ typedef enum _sai_hostif_user_defined_trap_type_t
/** Traps to be associated with TAM collector */
SAI_HOSTIF_USER_DEFINED_TRAP_TYPE_TAM,

/** Custom range base */
SAI_HOSTIF_USER_DEFINED_TRAP_TYPE_CUSTOM_RANGE_BASE = 0x00001000,

/**
* @brief End of user defined trap types
*/
SAI_HOSTIF_USER_DEFINED_TRAP_TYPE_END,

/** Custom range base */
SAI_HOSTIF_USER_DEFINED_TRAP_TYPE_CUSTOM_RANGE_BASE = 0x10000000,

} sai_hostif_user_defined_trap_type_t;

/**
Expand Down
2 changes: 2 additions & 0 deletions meta/checkheaders.pl
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ sub CheckHash
next if $key eq "SAI_API_MAX";
next if $key eq "SAI_PORT_INTERFACE_TYPE_MAX";
next if $key eq "SAI_PORT_BREAKOUT_MODE_TYPE_MAX";
next if $key eq "SAI_HOSTIF_USER_DEFINED_TRAP_TYPE_CUSTOM_RANGE_BASE";
next if $key eq "SAI_HOSTIF_USER_DEFINED_TRAP_TYPE_END";

# NOTE: some other attributes/enum with END range could be added
}
Expand Down
2 changes: 0 additions & 2 deletions meta/test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ sub CreateCustomRangeBaseTest

for my $range (@ranges)
{
next if $range eq "SAI_HOSTIF_USER_DEFINED_TRAP_TYPE_CUSTOM_RANGE_BASE"; # TODO exception, to be remove

my $prefix = uc $1 if $key =~ /(sai_\w+)_t$/;

if ($range eq "${prefix}_CUSTOM_RANGE_BASE")
Expand Down
Loading