From 05eb9bf8e2ace5aa475e092d8a3af766aa043b51 Mon Sep 17 00:00:00 2001 From: erohsik <71034063+erohsik@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:11:56 -0800 Subject: [PATCH] Add label attribute for Policer, RIF, Scheduler and UDF (#2046) * 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 * Add policers to the dictionary. Signed-off-by: Kishore Gummadidala --------- Signed-off-by: Kishore Gummadidala Co-authored-by: Kishore Gummadidala --- inc/saipolicer.h | 9 +++++++++ inc/sairouterinterface.h | 9 +++++++++ inc/saischeduler.h | 9 +++++++++ inc/saiudf.h | 9 +++++++++ meta/aspell.en.pws | 1 + 5 files changed, 37 insertions(+) diff --git a/inc/saipolicer.h b/inc/saipolicer.h index 51bac0b8b..66696bbd9 100644 --- a/inc/saipolicer.h +++ b/inc/saipolicer.h @@ -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 */ diff --git a/inc/sairouterinterface.h b/inc/sairouterinterface.h index bb52b6f44..446fbd53c 100644 --- a/inc/sairouterinterface.h +++ b/inc/sairouterinterface.h @@ -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 */ diff --git a/inc/saischeduler.h b/inc/saischeduler.h index 8e76171d9..d61286ec5 100644 --- a/inc/saischeduler.h +++ b/inc/saischeduler.h @@ -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 */ diff --git a/inc/saiudf.h b/inc/saiudf.h index d96f4b2ed..e36e06bff 100644 --- a/inc/saiudf.h +++ b/inc/saiudf.h @@ -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 */ diff --git a/meta/aspell.en.pws b/meta/aspell.en.pws index d218dd279..ebe0c1d67 100644 --- a/meta/aspell.en.pws +++ b/meta/aspell.en.pws @@ -144,6 +144,7 @@ PGs PHY pkts policer +policers Policer postcursor pre