Skip to content

Commit

Permalink
Add label attribute for Policer, RIF, Scheduler and UDF
Browse files Browse the repository at this point in the history
Add label attribute to a few SAI objects that will help during warmboot
object matching.
  • Loading branch information
Kishore Gummadidala committed Jul 10, 2024
1 parent 767c325 commit cbdfe05
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions inc/saipolicer.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,15 @@ typedef enum _sai_policer_attr_t
*/
SAI_POLICER_ATTR_OBJECT_STAGE = 0x0000000b,

/**
* @brief Label attribute used to uniquely identify identical policers.
*
* @type char
* @flags CREATE_AND_SET
* @default ""
*/
SAI_POLICER_ATTR_LABEL,

/**
* @brief End of attributes
*/
Expand Down
9 changes: 9 additions & 0 deletions inc/sairouterinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,15 @@ typedef enum _sai_router_interface_attr_t
*/
SAI_ROUTER_INTERFACE_ATTR_ADMIN_MPLS_STATE,

/**
* @brief Label attribute used to uniquely identify router interface.
*
* @type char
* @flags CREATE_AND_SET
* @default ""
*/
SAI_ROUTER_INTERFACE_ATTR_LABEL,

/**
* @brief End of attributes
*/
Expand Down
9 changes: 9 additions & 0 deletions inc/saischeduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ typedef enum _sai_scheduler_attr_t
*/
SAI_SCHEDULER_ATTR_MAX_BANDWIDTH_BURST_RATE = 0x00000006,

/**
* @brief Label attribute used to uniquely identify scheduler.
*
* @type char
* @flags CREATE_AND_SET
* @default ""
*/
SAI_SCHEDULER_ATTR_LABEL,

/**
* @brief End of attributes
*/
Expand Down
9 changes: 9 additions & 0 deletions inc/saiudf.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,15 @@ typedef enum _sai_udf_group_attr_t
*/
SAI_UDF_GROUP_ATTR_LENGTH,

/**
* @brief Label attribute used to uniquely identify UDF group.
*
* @type char
* @flags CREATE_AND_SET
* @default ""
*/
SAI_UDF_GROUP_ATTR_LABEL,

/**
* @brief End of attributes
*/
Expand Down

0 comments on commit cbdfe05

Please sign in to comment.