Skip to content

Commit

Permalink
define switch attribute to query platform dependent minimum/maximum
Browse files Browse the repository at this point in the history
priority for acl table/entry
  • Loading branch information
lguohan committed Apr 8, 2015
1 parent ae77b13 commit 6db048a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sai/inc/saiacl.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ typedef enum _sai_acl_table_attr_t
SAI_ACL_TABLE_ATTR_STAGE,

/* Priority [uint32_t]
* (default = 0) */
* Value must be in the range defined in
* [SAI_SWITCH_ATTR_ACL_TABLE_MINIMUM_PRIORITY,
* SAI_SWITCH_ATTR_ACL_TABLE_MAXIMUM_PRIORITY]
* (default = SAI_SWITCH_ATTR_ACL_TABLE_MINIMUM_PRIORITY) */
SAI_ACL_TABLE_ATTR_PRIORITY,

/* Match fields [bool]
Expand Down Expand Up @@ -220,7 +223,10 @@ typedef enum _sai_acl_entry_attr_t
/* READ-WRITE */

/* Priority [uint32_t]
* (default = 0) */
* Value must be in the range defined in
* [SAI_SWITCH_ATTR_ACL_ENTRY_MINIMUM_PRIORITY,
* SAI_SWITCH_ATTR_ACL_ENTRY_MAXIMUM_PRIORITY]
* (default = SAI_SWITCH_ATTR_ACL_ENTRY_MINIMUM_PRIORITY) */
SAI_ACL_ENTRY_ATTR_PRIORITY,

/* Enabled / Disabled [bool] */
Expand Down
12 changes: 12 additions & 0 deletions sai/inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ typedef enum _sai_switch_attr_t
* retrieved from the switch sensors, in Celsius [int32_t] */
SAI_SWITCH_ATTR_MAX_TEMP,

/* minimum priority for ACL table */
SAI_SWITCH_ATTR_ACL_TABLE_MINIMUM_PRIORITY,

/* maximum priority for ACL table */
SAI_SWITCH_ATTR_ACL_TABLE_MAXIMUM_PRIORITY,

/* minimum priority for ACL entry */
SAI_SWITCH_ATTR_ACL_ENTRY_MINIMUM_PRIORITY,

/* maximum priority for ACL entry */
SAI_SWITCH_ATTR_ACL_ENTRY_MAXIMUM_PRIORITY

/* READ-WRITE */

/* Switching mode [sai_switch_switching_mode_t]
Expand Down

0 comments on commit 6db048a

Please sign in to comment.