Skip to content

Commit 0e2f3a0

Browse files
committed
Fix azp
Signed-off-by: Ze Gan <[email protected]>
1 parent 08af097 commit 0e2f3a0

File tree

1 file changed

+38
-7
lines changed

1 file changed

+38
-7
lines changed

inc/saitam.h

Lines changed: 38 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,25 @@ 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);
25572587

25582588
/**
25592589
* @brief SAI TAM API set
@@ -2602,6 +2632,9 @@ typedef struct _sai_tam_api_t
26022632
sai_remove_tam_telemetry_fn remove_tam_telemetry;
26032633
sai_set_tam_telemetry_attribute_fn set_tam_telemetry_attribute;
26042634
sai_get_tam_telemetry_attribute_fn get_tam_telemetry_attribute;
2635+
sai_get_tam_telemetry_stats_fn get_tam_telemetry_stats;
2636+
sai_get_tam_telemetry_stats_ext_fn get_tam_telemetry_stats_ext;
2637+
sai_clear_tam_telemetry_stats_fn clear_tam_telemetry_stats;
26052638

26062639
sai_create_tam_collector_fn create_tam_collector;
26072640
sai_remove_tam_collector_fn remove_tam_collector;
@@ -2624,8 +2657,6 @@ typedef struct _sai_tam_api_t
26242657
sai_get_tam_counter_subscription_attribute_fn get_tam_counter_subscription_attribute;
26252658
sai_bulk_object_create_fn create_tam_counter_subscriptions;
26262659
sai_bulk_object_remove_fn remove_tam_counter_subscriptions;
2627-
2628-
sai_get_tam_telemetry_stats_ext_fn get_tam_telemetry_stats_ext;
26292660
} sai_tam_api_t;
26302661

26312662
/**

0 commit comments

Comments
 (0)