SAI Metadata
|
Classes | |
struct | _sai_tam_api_t |
SAI TAM API set. More... | |
Typedefs | |
typedef enum _sai_tam_attr_t | sai_tam_attr_t |
TAM Attributes. | |
typedef sai_status_t(* | sai_create_tam_fn) (_Out_ sai_object_id_t *tam_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a TAM object. | |
typedef sai_status_t(* | sai_remove_tam_fn) (_In_ sai_object_id_t tam_id) |
Deletes a specified tam object. | |
typedef sai_status_t(* | sai_set_tam_attribute_fn) (_In_ sai_object_id_t tam_id, _In_ const sai_attribute_t *attr) |
Set TAM attribute value(s). | |
typedef sai_status_t(* | sai_get_tam_attribute_fn) (_In_ sai_object_id_t tam_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified TAM attributes. | |
typedef enum _sai_tam_tel_math_func_type_t | sai_tam_tel_math_func_type_t |
TAM Telemetry Math Function types. | |
typedef enum _sai_tam_math_func_attr_t | sai_tam_math_func_attr_t |
Attributes for Math function. | |
typedef sai_status_t(* | sai_create_tam_math_func_fn) (_Out_ sai_object_id_t *tam_math_func_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a math function object. | |
typedef sai_status_t(* | sai_remove_tam_math_func_fn) (_In_ sai_object_id_t tam_math_func_id) |
Deletes a specified Match function object. | |
typedef sai_status_t(* | sai_get_tam_math_func_attribute_fn) (_In_ sai_object_id_t tam_math_func_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified Math function attributes. | |
typedef sai_status_t(* | sai_set_tam_math_func_attribute_fn) (_In_ sai_object_id_t tam_math_func_id, _In_ const sai_attribute_t *attr) |
Set value for specified Math function attribute. | |
typedef enum _sai_tam_event_threshold_unit_t | sai_tam_event_threshold_unit_t |
TAM event threshold unit. | |
typedef enum _sai_tam_event_threshold_attr_t | sai_tam_event_threshold_attr_t |
Event Threshold Attributes. | |
typedef sai_status_t(* | sai_create_tam_event_threshold_fn) (_Out_ sai_object_id_t *tam_event_threshold_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a threshold object. | |
typedef sai_status_t(* | sai_remove_tam_event_threshold_fn) (_In_ sai_object_id_t tam_event_threshold_id) |
Deletes a specified threshold object. | |
typedef sai_status_t(* | sai_get_tam_event_threshold_attribute_fn) (_In_ sai_object_id_t tam_event_threshold_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified threshold object attributes. | |
typedef sai_status_t(* | sai_set_tam_event_threshold_attribute_fn) (_In_ sai_object_id_t tam_event_threshold_id, _In_ const sai_attribute_t *attr) |
Set value for a specified threshold object attribute. | |
typedef enum _sai_tam_int_type_t | sai_tam_int_type_t |
TAM INT types. | |
typedef enum _sai_tam_int_presence_type_t | sai_tam_int_presence_type_t |
Type of indication of INT presence in a packet. | |
typedef enum _sai_tam_int_attr_t | sai_tam_int_attr_t |
Attributes for TAM INT. | |
typedef sai_status_t(* | sai_create_tam_int_fn) (_Out_ sai_object_id_t *tam_int_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a INT type object. | |
typedef sai_status_t(* | sai_remove_tam_int_fn) (_In_ sai_object_id_t tam_int_id) |
Deletes a specified INT object. | |
typedef sai_status_t(* | sai_get_tam_int_attribute_fn) (_In_ sai_object_id_t tam_int_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified INT object attributes. | |
typedef sai_status_t(* | sai_set_tam_int_attribute_fn) (_In_ sai_object_id_t tam_int_id, _In_ const sai_attribute_t *attr) |
Set value for a specified INT object attribute. | |
typedef enum _sai_tam_telemetry_type_t | sai_tam_telemetry_type_t |
TAM telemetry types supported. | |
typedef enum _sai_tam_tel_type_attr_t | sai_tam_tel_type_attr_t |
Telemetry type attributes. | |
typedef sai_status_t(* | sai_create_tam_tel_type_fn) (_Out_ sai_object_id_t *tam_tel_type_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a telemetry type object. | |
typedef sai_status_t(* | sai_remove_tam_tel_type_fn) (_In_ sai_object_id_t tam_tel_type_id) |
Deletes a specified telemetry type object. | |
typedef sai_status_t(* | sai_get_tam_tel_type_attribute_fn) (_In_ sai_object_id_t tam_tel_type_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified telemetry type object attributes. | |
typedef sai_status_t(* | sai_set_tam_tel_type_attribute_fn) (_In_ sai_object_id_t tam_tel_type_id, _In_ const sai_attribute_t *attr) |
Set value for a specified telemetry type object attribute. | |
typedef enum _sai_tam_report_type_t | sai_tam_report_type_t |
TAM report types. | |
typedef enum _sai_tam_report_mode_t | sai_tam_report_mode_t |
Enum defining reporting modes. | |
typedef enum _sai_tam_report_interval_unit_t | sai_tam_report_interval_unit_t |
TAM report interval units. | |
typedef enum _sai_tam_report_attr_t | sai_tam_report_attr_t |
Attributes for TAM report. | |
typedef sai_status_t(* | sai_create_tam_report_fn) (_Out_ sai_object_id_t *tam_report_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a report object id. | |
typedef sai_status_t(* | sai_remove_tam_report_fn) (_In_ sai_object_id_t tam_report_id) |
Deletes a specified report object. | |
typedef sai_status_t(* | sai_get_tam_report_attribute_fn) (_In_ sai_object_id_t tam_report_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified report object attributes. | |
typedef sai_status_t(* | sai_set_tam_report_attribute_fn) (_In_ sai_object_id_t tam_report_id, _In_ const sai_attribute_t *attr) |
Set value for a specified report object attribute. | |
typedef enum _sai_tam_reporting_unit_t | sai_tam_reporting_unit_t |
TAM reporting unit. | |
typedef enum _sai_tam_telemetry_attr_t | sai_tam_telemetry_attr_t |
TAM telemetry attributes. | |
typedef sai_status_t(* | sai_create_tam_telemetry_fn) (_Out_ sai_object_id_t *tam_telemetry_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a telemetry object. | |
typedef sai_status_t(* | sai_remove_tam_telemetry_fn) (_In_ sai_object_id_t tam_telemetry_id) |
Deletes a specified telemetry object. | |
typedef sai_status_t(* | sai_get_tam_telemetry_attribute_fn) (_In_ sai_object_id_t tam_telemetry_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified telemetry object attributes. | |
typedef sai_status_t(* | sai_set_tam_telemetry_attribute_fn) (_In_ sai_object_id_t tam_telemetry_id, _In_ const sai_attribute_t *attr) |
Set value for a specified telemetry object attribute. | |
typedef enum _sai_tam_transport_type_t | sai_tam_transport_type_t |
Transport Types. | |
typedef enum _sai_tam_transport_auth_type_t | sai_tam_transport_auth_type_t |
Transport Authentication Types. | |
typedef enum _sai_tam_transport_attr_t | sai_tam_transport_attr_t |
Transport object Attributes. | |
typedef sai_status_t(* | sai_create_tam_transport_fn) (_Out_ sai_object_id_t *tam_transport_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a transport object id. | |
typedef sai_status_t(* | sai_remove_tam_transport_fn) (_In_ sai_object_id_t tam_transport_id) |
Deletes a specified transport object. | |
typedef sai_status_t(* | sai_get_tam_transport_attribute_fn) (_In_ sai_object_id_t tam_transport_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified transport object attributes. | |
typedef sai_status_t(* | sai_set_tam_transport_attribute_fn) (_In_ sai_object_id_t tam_transport_id, _In_ const sai_attribute_t *attr) |
Set value for a specified transport object attribute. | |
typedef enum _sai_tam_collector_attr_t | sai_tam_collector_attr_t |
TAM collector attributes. | |
typedef sai_status_t(* | sai_create_tam_collector_fn) (_Out_ sai_object_id_t *tam_collector_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a collector object id. | |
typedef sai_status_t(* | sai_remove_tam_collector_fn) (_In_ sai_object_id_t tam_collector_id) |
Deletes a specified collector object. | |
typedef sai_status_t(* | sai_get_tam_collector_attribute_fn) (_In_ sai_object_id_t tam_collector_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified collector object attributes. | |
typedef sai_status_t(* | sai_set_tam_collector_attribute_fn) (_In_ sai_object_id_t tam_collector_id, _In_ const sai_attribute_t *attr) |
Set value for a specified collector object attribute. | |
typedef enum _sai_tam_event_type_t | sai_tam_event_type_t |
Enum defining event types. | |
typedef enum _sai_tam_event_action_attr_t | sai_tam_event_action_attr_t |
Enum defining event types. | |
typedef sai_status_t(* | sai_create_tam_event_action_fn) (_Out_ sai_object_id_t *tam_event_action_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a event action object id. | |
typedef sai_status_t(* | sai_remove_tam_event_action_fn) (_In_ sai_object_id_t tam_event_action_id) |
Deletes a specified event object. | |
typedef sai_status_t(* | sai_get_tam_event_action_attribute_fn) (_In_ sai_object_id_t tam_event_action_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified event object attributes. | |
typedef sai_status_t(* | sai_set_tam_event_action_attribute_fn) (_In_ sai_object_id_t tam_event_action_id, _In_ const sai_attribute_t *attr) |
Set value for a specified event object attribute. | |
typedef enum _sai_tam_event_attr_t | sai_tam_event_attr_t |
Tam event attributes. | |
typedef sai_status_t(* | sai_create_tam_event_fn) (_Out_ sai_object_id_t *tam_event_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a event object id. | |
typedef sai_status_t(* | sai_remove_tam_event_fn) (_In_ sai_object_id_t tam_event_id) |
Deletes a specified event object. | |
typedef sai_status_t(* | sai_get_tam_event_attribute_fn) (_In_ sai_object_id_t tam_event_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified event object attributes. | |
typedef sai_status_t(* | sai_set_tam_event_attribute_fn) (_In_ sai_object_id_t tam_event_id, _In_ const sai_attribute_t *attr) |
Set value for a specified event object attribute. | |
typedef enum _sai_tam_counter_subscription_attr_t | sai_tam_counter_subscription_attr_t |
Counter Subscription attributes. | |
typedef sai_status_t(* | sai_create_tam_counter_subscription_fn) (_Out_ sai_object_id_t *tam_counter_subscription_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create a counter subscription. | |
typedef sai_status_t(* | sai_remove_tam_counter_subscription_fn) (_In_ sai_object_id_t tam_counter_subscription_id) |
Delete a specified counter subscription. | |
typedef sai_status_t(* | sai_set_tam_counter_subscription_attribute_fn) (_In_ sai_object_id_t tam_counter_subscription_id, _In_ const sai_attribute_t *attr) |
Set value for a specified counter subscription object attribute. | |
typedef sai_status_t(* | sai_get_tam_counter_subscription_attribute_fn) (_In_ sai_object_id_t tam_counter_subscription_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified event object attributes. | |
typedef void(* | sai_tam_event_notification_fn) (_In_ sai_object_id_t tam_event_id, _In_ sai_size_t buffer_size, _In_ const void *buffer, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
TAM event callback. | |
typedef struct _sai_tam_api_t | sai_tam_api_t |
SAI TAM API set. | |
Functions | |
sai_status_t | sai_tam_telemetry_get_data (_In_ sai_object_id_t switch_id, _In_ sai_object_list_t obj_list, _In_ bool clear_on_read, _Inout_ sai_size_t *buffer_size, _Out_ void *buffer) |
TAM telemetry data get API. | |
typedef sai_status_t(* sai_create_tam_collector_fn) (_Out_ sai_object_id_t *tam_collector_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a collector object id.
[out] | tam_collector_id | Collector object Id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_counter_subscription_fn) (_Out_ sai_object_id_t *tam_counter_subscription_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create a counter subscription.
[out] | tam_counter_subscription_id | Counter subscription object Id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_event_action_fn) (_Out_ sai_object_id_t *tam_event_action_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a event action object id.
[out] | tam_event_action_id | Event object Id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_event_fn) (_Out_ sai_object_id_t *tam_event_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a event object id.
[out] | tam_event_id | Event object Id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_event_threshold_fn) (_Out_ sai_object_id_t *tam_event_threshold_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a threshold object.
[out] | tam_event_threshold_id | Event Threshold object |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_fn) (_Out_ sai_object_id_t *tam_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a TAM object.
This creates a TAM object in the driver for tracking the buffer usage. Via the attributes, caller may indicate a preference for tracking of a specific set of statistics/groups.
[out] | tam_id | TAM object |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_int_fn) (_Out_ sai_object_id_t *tam_int_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a INT type object.
[out] | tam_int_id | INT object |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_math_func_fn) (_Out_ sai_object_id_t *tam_math_func_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a math function object.
[out] | tam_math_func_id | Object id for math function |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_report_fn) (_Out_ sai_object_id_t *tam_report_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a report object id.
[out] | tam_report_id | Report object Id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_tel_type_fn) (_Out_ sai_object_id_t *tam_tel_type_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a telemetry type object.
[out] | tam_tel_type_id | Telemetry type object |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_telemetry_fn) (_Out_ sai_object_id_t *tam_telemetry_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a telemetry object.
[out] | tam_telemetry_id | Telemetry object id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_create_tam_transport_fn) (_Out_ sai_object_id_t *tam_transport_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create and return a transport object id.
[out] | tam_transport_id | Transport object Id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_attribute_fn) (_In_ sai_object_id_t tam_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified TAM attributes.
[in] | tam_id | TAM object id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_collector_attribute_fn) (_In_ sai_object_id_t tam_collector_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified collector object attributes.
[in] | tam_collector_id | Collector object id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_counter_subscription_attribute_fn) (_In_ sai_object_id_t tam_counter_subscription_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified event object attributes.
[in] | tam_counter_subscription_id | Counter Subscription object id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_event_action_attribute_fn) (_In_ sai_object_id_t tam_event_action_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified event object attributes.
[in] | tam_event_action_id | Event object id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_event_attribute_fn) (_In_ sai_object_id_t tam_event_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified event object attributes.
[in] | tam_event_id | Event object id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_event_threshold_attribute_fn) (_In_ sai_object_id_t tam_event_threshold_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified threshold object attributes.
[in] | tam_event_threshold_id | Event Threshold object |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_int_attribute_fn) (_In_ sai_object_id_t tam_int_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified INT object attributes.
[in] | tam_int_id | INT object id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_math_func_attribute_fn) (_In_ sai_object_id_t tam_math_func_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified Math function attributes.
[in] | tam_math_func_id | Object id for math function |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_report_attribute_fn) (_In_ sai_object_id_t tam_report_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified report object attributes.
[in] | tam_report_id | Report object id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_tel_type_attribute_fn) (_In_ sai_object_id_t tam_tel_type_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified telemetry type object attributes.
[in] | tam_tel_type_id | Telemetry type object id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_telemetry_attribute_fn) (_In_ sai_object_id_t tam_telemetry_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified telemetry object attributes.
[in] | tam_telemetry_id | Telemetry object |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_get_tam_transport_attribute_fn) (_In_ sai_object_id_t tam_transport_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get values for specified transport object attributes.
[in] | tam_transport_id | Transport object id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
typedef sai_status_t(* sai_remove_tam_collector_fn) (_In_ sai_object_id_t tam_collector_id) |
Deletes a specified collector object.
[in] | tam_collector_id | Collector object id |
typedef sai_status_t(* sai_remove_tam_counter_subscription_fn) (_In_ sai_object_id_t tam_counter_subscription_id) |
Delete a specified counter subscription.
[in] | tam_counter_subscription_id | Counter Subscription object id |
typedef sai_status_t(* sai_remove_tam_event_action_fn) (_In_ sai_object_id_t tam_event_action_id) |
Deletes a specified event object.
[in] | tam_event_action_id | Event object id |
typedef sai_status_t(* sai_remove_tam_event_fn) (_In_ sai_object_id_t tam_event_id) |
Deletes a specified event object.
[in] | tam_event_id | Event object id |
typedef sai_status_t(* sai_remove_tam_event_threshold_fn) (_In_ sai_object_id_t tam_event_threshold_id) |
Deletes a specified threshold object.
[in] | tam_event_threshold_id | Event Threshold object |
typedef sai_status_t(* sai_remove_tam_fn) (_In_ sai_object_id_t tam_id) |
Deletes a specified tam object.
Deleting a TAM object also deletes all associated report and threshold objects.
[in] | tam_id | TAM object to be removed. |
typedef sai_status_t(* sai_remove_tam_int_fn) (_In_ sai_object_id_t tam_int_id) |
Deletes a specified INT object.
[in] | tam_int_id | INT type object id |
typedef sai_status_t(* sai_remove_tam_math_func_fn) (_In_ sai_object_id_t tam_math_func_id) |
Deletes a specified Match function object.
[in] | tam_math_func_id | Object id for math function |
typedef sai_status_t(* sai_remove_tam_report_fn) (_In_ sai_object_id_t tam_report_id) |
Deletes a specified report object.
[in] | tam_report_id | Report object id |
typedef sai_status_t(* sai_remove_tam_tel_type_fn) (_In_ sai_object_id_t tam_tel_type_id) |
Deletes a specified telemetry type object.
[in] | tam_tel_type_id | Telemetry type object id |
typedef sai_status_t(* sai_remove_tam_telemetry_fn) (_In_ sai_object_id_t tam_telemetry_id) |
Deletes a specified telemetry object.
[in] | tam_telemetry_id | Telemetry object |
typedef sai_status_t(* sai_remove_tam_transport_fn) (_In_ sai_object_id_t tam_transport_id) |
Deletes a specified transport object.
[in] | tam_transport_id | Transport object id |
typedef sai_status_t(* sai_set_tam_attribute_fn) (_In_ sai_object_id_t tam_id, _In_ const sai_attribute_t *attr) |
Set TAM attribute value(s).
[in] | tam_id | TAM id |
[in] | attr | Attribute to set |
typedef sai_status_t(* sai_set_tam_collector_attribute_fn) (_In_ sai_object_id_t tam_collector_id, _In_ const sai_attribute_t *attr) |
Set value for a specified collector object attribute.
[in] | tam_collector_id | Collector object id |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_counter_subscription_attribute_fn) (_In_ sai_object_id_t tam_counter_subscription_id, _In_ const sai_attribute_t *attr) |
Set value for a specified counter subscription object attribute.
[in] | tam_counter_subscription_id | Counter Subscription object id |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_event_action_attribute_fn) (_In_ sai_object_id_t tam_event_action_id, _In_ const sai_attribute_t *attr) |
Set value for a specified event object attribute.
[in] | tam_event_action_id | Event object id |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_event_attribute_fn) (_In_ sai_object_id_t tam_event_id, _In_ const sai_attribute_t *attr) |
Set value for a specified event object attribute.
[in] | tam_event_id | Event object id |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_event_threshold_attribute_fn) (_In_ sai_object_id_t tam_event_threshold_id, _In_ const sai_attribute_t *attr) |
Set value for a specified threshold object attribute.
[in] | tam_event_threshold_id | Event Threshold object |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_int_attribute_fn) (_In_ sai_object_id_t tam_int_id, _In_ const sai_attribute_t *attr) |
Set value for a specified INT object attribute.
[in] | tam_int_id | INT object id |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_math_func_attribute_fn) (_In_ sai_object_id_t tam_math_func_id, _In_ const sai_attribute_t *attr) |
Set value for specified Math function attribute.
[in] | tam_math_func_id | Object id for math function |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_report_attribute_fn) (_In_ sai_object_id_t tam_report_id, _In_ const sai_attribute_t *attr) |
Set value for a specified report object attribute.
[in] | tam_report_id | Report object id |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_tel_type_attribute_fn) (_In_ sai_object_id_t tam_tel_type_id, _In_ const sai_attribute_t *attr) |
Set value for a specified telemetry type object attribute.
[in] | tam_tel_type_id | Telemetry type object id |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_telemetry_attribute_fn) (_In_ sai_object_id_t tam_telemetry_id, _In_ const sai_attribute_t *attr) |
Set value for a specified telemetry object attribute.
[in] | tam_telemetry_id | Telemetry object |
[in] | attr | Attribute |
typedef sai_status_t(* sai_set_tam_transport_attribute_fn) (_In_ sai_object_id_t tam_transport_id, _In_ const sai_attribute_t *attr) |
Set value for a specified transport object attribute.
[in] | tam_transport_id | Transport object id |
[in] | attr | Attribute |
typedef void(* sai_tam_event_notification_fn) (_In_ sai_object_id_t tam_event_id, _In_ sai_size_t buffer_size, _In_ const void *buffer, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
TAM event callback.
[in] | tam_event_id | Create Event Object ID |
[in] | buffer_size | Actual buffer size in bytes |
[in] | buffer | Data buffer |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
enum _sai_tam_attr_t |
TAM Attributes.
TAM collector attributes.
Counter Subscription attributes.
Enum defining event types.
Tam event attributes.
Event Threshold Attributes.
TAM event threshold unit.
Enum defining event types.
enum _sai_tam_int_attr_t |
Attributes for TAM INT.
Enumerator | |
---|---|
SAI_TAM_INT_ATTR_START | Start of Attributes. |
SAI_TAM_INT_ATTR_TYPE | Type of INT method.
|
SAI_TAM_INT_ATTR_DEVICE_ID | Device Identifier.
|
SAI_TAM_INT_ATTR_IOAM_TRACE_TYPE | IOAM trace type.
|
SAI_TAM_INT_ATTR_INT_PRESENCE_TYPE | Type of indication of INT presence in a packet.
|
SAI_TAM_INT_ATTR_INT_PRESENCE_PB1 | First 4 octets of Probe Marker value that indicates INT presence.
|
SAI_TAM_INT_ATTR_INT_PRESENCE_PB2 | Second 4 octets of Probe Marker value that indicates INT presence.
|
SAI_TAM_INT_ATTR_INT_PRESENCE_DSCP_VALUE | DSCP value that indicates presence of INT in a packet.
|
SAI_TAM_INT_ATTR_INLINE | Inline or Clone mode Inline mode will insert header and metadata in live packet Clone mode will insert header and metadata in cloned packet.
|
SAI_TAM_INT_ATTR_INT_PRESENCE_L3_PROTOCOL | L3 protocol value that indicates presence of INT in a packet.
|
SAI_TAM_INT_ATTR_TRACE_VECTOR | Trace vector value trace vector is used to specified the fields of interest in metadata header.
|
SAI_TAM_INT_ATTR_ACTION_VECTOR | Action vector value action vector is used to specified the actions of interest on metadata header value of 0 means no actions of interest.
|
SAI_TAM_INT_ATTR_P4_INT_INSTRUCTION_BITMAP | P4 INT instruction bitmap.
|
SAI_TAM_INT_ATTR_METADATA_FRAGMENT_ENABLE | Enable metadata fragmentation. When there is insufficient space in the packet to add INT metadata for this hop (e.g. MTU would be exceeded), the device may remove the metadata from the packet, send a report to the collector, and insert its metadata before forwarding the packet. Note: Applicable only when SAI_TAM_INT_ATTR_TYPE != SAI_TAM_INT_TYPE_DIRECT_EXPORT
|
SAI_TAM_INT_ATTR_METADATA_CHECKSUM_ENABLE | Enable checksum. Enable checksum for metadata stack
|
SAI_TAM_INT_ATTR_REPORT_ALL_PACKETS | TAM INT should report all packets without filtering.
|
SAI_TAM_INT_ATTR_FLOW_LIVENESS_PERIOD | TAM INT flow liveliness period in seconds.
|
SAI_TAM_INT_ATTR_LATENCY_SENSITIVITY | Latency sensitivity for flow state change detection in units of 2^n nanoseconds.
|
SAI_TAM_INT_ATTR_ACL_GROUP | INT bind point for ACL object. Bind (or unbind) an ACL table or ACL group. Enable/Update ACL table or ACL group filtering for INT insertion. Disable ingress filtering by assigning SAI_NULL_OBJECT_ID in the attribute value.
|
SAI_TAM_INT_ATTR_MAX_HOP_COUNT | Maximum number of hops allowed in the path.
|
SAI_TAM_INT_ATTR_MAX_LENGTH | Maximum length of metadata stack, in units of 4 octet words.
|
SAI_TAM_INT_ATTR_NAME_SPACE_ID | Metadata name space ID name space id defines the applicable format of metadata header.
|
SAI_TAM_INT_ATTR_NAME_SPACE_ID_GLOBAL | Metadata name space ID scope name space id scope is global or local.
|
SAI_TAM_INT_ATTR_INGRESS_SAMPLEPACKET_ENABLE | Enable/Disable Samplepacket session. Enable ingress sampling by assigning samplepacket object id Disable ingress sampling by assigning SAI_NULL_OBJECT_ID as attribute value.
|
SAI_TAM_INT_ATTR_COLLECTOR_LIST | Collector object list.
|
SAI_TAM_INT_ATTR_MATH_FUNC | Math function attached.
|
SAI_TAM_INT_ATTR_REPORT_ID | Tam report type.
|
SAI_TAM_INT_ATTR_END | End of Attributes. |
SAI_TAM_INT_ATTR_CUSTOM_RANGE_START | Custom range base value |
SAI_TAM_INT_ATTR_CUSTOM_RANGE_END | End of custom range base |
Type of indication of INT presence in a packet.
enum _sai_tam_int_type_t |
TAM INT types.
Attributes for Math function.
Attributes for TAM report.
TAM report types.
TAM Telemetry Math Function types.
Telemetry type attributes.
TAM telemetry attributes.
TAM telemetry types supported.
Transport object Attributes.
sai_status_t sai_tam_telemetry_get_data | ( | _In_ sai_object_id_t | switch_id, |
_In_ sai_object_list_t | obj_list, | ||
_In_ bool | clear_on_read, | ||
_Inout_ sai_size_t * | buffer_size, | ||
_Out_ void * | buffer | ||
) |
TAM telemetry data get API.
[in] | switch_id | SAI Switch object id |
[in] | obj_list | SAI Switch object list |
[in] | clear_on_read | Flag to clear the read data |
[in,out] | buffer_size | Actual buffer size in bytes |
[out] | buffer | Data buffer |