Skip to content

Commit

Permalink
Add label attribute for Policer, RIF, Scheduler and UDF (#2046)
Browse files Browse the repository at this point in the history
* Add label attribute for Policer, RIF, Scheduler and UDF

    Add label attribute to a few SAI objects that will help during warmboot
    object matching.

Signed-off-by: Kishore Gummadidala <kishorg@google.com>

* Add policers to the dictionary.

Signed-off-by: Kishore Gummadidala <kishorg@google.com>

---------

Signed-off-by: Kishore Gummadidala <kishorg@google.com>
Co-authored-by: Kishore Gummadidala <kishorg@google.com>
  • Loading branch information
erohsik and Kishore Gummadidala authored Nov 14, 2024
1 parent e6af1ee commit 05eb9bf
Show file tree
Hide file tree
Showing 5 changed files with 37 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 @@ -231,6 +231,15 @@ typedef enum _sai_policer_attr_t
*/
SAI_POLICER_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @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 @@ -316,6 +316,15 @@ typedef enum _sai_router_interface_attr_t
*/
SAI_ROUTER_INTERFACE_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @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
1 change: 1 addition & 0 deletions meta/aspell.en.pws
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ PGs
PHY
pkts
policer
policers
Policer
postcursor
pre
Expand Down

0 comments on commit 05eb9bf

Please sign in to comment.