From 197b30b88746d7b5d7a1ea628e7f62cb7c213e98 Mon Sep 17 00:00:00 2001 From: zhichenr Date: Tue, 10 Sep 2024 19:06:02 -0700 Subject: [PATCH] Add bulk set and bulk get API for ingress priority group and queue Add bulk set and get API for ingress priority group and queue. --- inc/saibuffer.h | 2 ++ inc/saiqueue.h | 17 +++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/inc/saibuffer.h b/inc/saibuffer.h index 2920675c0..cc008e19e 100644 --- a/inc/saibuffer.h +++ b/inc/saibuffer.h @@ -755,6 +755,8 @@ typedef struct _sai_buffer_api_t sai_remove_buffer_profile_fn remove_buffer_profile; sai_set_buffer_profile_attribute_fn set_buffer_profile_attribute; sai_get_buffer_profile_attribute_fn get_buffer_profile_attribute; + sai_bulk_object_set_attribute_fn set_ingress_priority_groups_attribute; + sai_bulk_object_get_attribute_fn get_ingress_priority_groups_attribute; } sai_buffer_api_t; /** diff --git a/inc/saiqueue.h b/inc/saiqueue.h index 79bf1f23f..60fab0527 100644 --- a/inc/saiqueue.h +++ b/inc/saiqueue.h @@ -561,14 +561,15 @@ typedef void (*sai_queue_pfc_deadlock_notification_fn)( */ typedef struct _sai_queue_api_t { - sai_create_queue_fn create_queue; - sai_remove_queue_fn remove_queue; - sai_set_queue_attribute_fn set_queue_attribute; - sai_get_queue_attribute_fn get_queue_attribute; - sai_get_queue_stats_fn get_queue_stats; - sai_get_queue_stats_ext_fn get_queue_stats_ext; - sai_clear_queue_stats_fn clear_queue_stats; - + sai_create_queue_fn create_queue; + sai_remove_queue_fn remove_queue; + sai_set_queue_attribute_fn set_queue_attribute; + sai_get_queue_attribute_fn get_queue_attribute; + sai_get_queue_stats_fn get_queue_stats; + sai_get_queue_stats_ext_fn get_queue_stats_ext; + sai_clear_queue_stats_fn clear_queue_stats; + sai_bulk_object_set_attribute_fn set_queues_attribute; + sai_bulk_object_get_attribute_fn get_queues_attribute; } sai_queue_api_t; /**