Skip to content

Commit cab7604

Browse files
committed
Fix azp
Signed-off-by: Ze Gan <ganze718@gmail.com>
1 parent 08af097 commit cab7604

File tree

1 file changed

+39
-7
lines changed

1 file changed

+39
-7
lines changed

inc/saitam.h

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2537,6 +2537,22 @@ sai_status_t sai_tam_telemetry_get_data(
25372537
_Inout_ sai_size_t *buffer_size,
25382538
_Out_ void *buffer);
25392539

2540+
/**
2541+
* @brief Get TAM telemetry statistics counters. Deprecated for backward compatibility.
2542+
*
2543+
* @param[in] tam_telemetry_id TAM telemetry id
2544+
* @param[in] number_of_counters Number of counters in the array
2545+
* @param[in] counter_ids Specifies the array of counter ids
2546+
* @param[out] counters Array of resulting counter values.
2547+
*
2548+
* @return #SAI_STATUS_SUCCESS on success, failure status code on error
2549+
*/
2550+
typedef sai_status_t (*sai_get_tam_telemetry_stats_fn)(
2551+
_In_ sai_object_id_t tam_telemetry_id,
2552+
_In_ uint32_t number_of_counters,
2553+
_In_ const sai_stat_id_t *counter_ids,
2554+
_Out_ uint64_t *counters);
2555+
25402556
/**
25412557
* @brief Get TAM telemetry statistics counters extended.
25422558
*
@@ -2549,11 +2565,26 @@ sai_status_t sai_tam_telemetry_get_data(
25492565
* @return #SAI_STATUS_SUCCESS on success, failure status code on error
25502566
*/
25512567
typedef sai_status_t (*sai_get_tam_telemetry_stats_ext_fn)(
2552-
_In_ sai_object_id_t tam_telemetry_id,
2553-
_In_ uint32_t number_of_counters,
2554-
_In_ const sai_stat_id_t *counter_ids,
2555-
_In_ sai_stats_mode_t mode,
2556-
_Out_ uint64_t *counters);
2568+
_In_ sai_object_id_t tam_telemetry_id,
2569+
_In_ uint32_t number_of_counters,
2570+
_In_ const sai_stat_id_t *counter_ids,
2571+
_In_ sai_stats_mode_t mode,
2572+
_Out_ uint64_t *counters);
2573+
2574+
/**
2575+
* @brief Clear tam_telemetry statistics counters.
2576+
*
2577+
* @param[in] tam_telemetry_id TAM telemetry id
2578+
* @param[in] number_of_counters Number of counters in the array
2579+
* @param[in] counter_ids Specifies the array of counter ids
2580+
*
2581+
* @return #SAI_STATUS_SUCCESS on success, failure status code on error
2582+
*/
2583+
typedef sai_status_t (*sai_clear_tam_telemetry_stats_fn)(
2584+
_In_ sai_object_id_t tam_telemetry_id,
2585+
_In_ uint32_t number_of_counters,
2586+
_In_ const sai_stat_id_t *counter_ids);
2587+
25572588

25582589
/**
25592590
* @brief SAI TAM API set
@@ -2602,6 +2633,9 @@ typedef struct _sai_tam_api_t
26022633
sai_remove_tam_telemetry_fn remove_tam_telemetry;
26032634
sai_set_tam_telemetry_attribute_fn set_tam_telemetry_attribute;
26042635
sai_get_tam_telemetry_attribute_fn get_tam_telemetry_attribute;
2636+
sai_get_tam_telemetry_stats_fn get_tam_telemetry_stats;
2637+
sai_get_tam_telemetry_stats_ext_fn get_tam_telemetry_stats_ext;
2638+
sai_clear_tam_telemetry_stats_fn clear_tam_telemetry_stats;
26052639

26062640
sai_create_tam_collector_fn create_tam_collector;
26072641
sai_remove_tam_collector_fn remove_tam_collector;
@@ -2624,8 +2658,6 @@ typedef struct _sai_tam_api_t
26242658
sai_get_tam_counter_subscription_attribute_fn get_tam_counter_subscription_attribute;
26252659
sai_bulk_object_create_fn create_tam_counter_subscriptions;
26262660
sai_bulk_object_remove_fn remove_tam_counter_subscriptions;
2627-
2628-
sai_get_tam_telemetry_stats_ext_fn get_tam_telemetry_stats_ext;
26292661
} sai_tam_api_t;
26302662

26312663
/**

0 commit comments

Comments
 (0)