SAI Metadata
|
Classes | |
struct | _sai_samplepacket_api_t |
Samplepacket method table retrieved with sai_api_query() More... | |
Typedefs | |
typedef enum _sai_samplepacket_type_t | sai_samplepacket_type_t |
SAI type of samplepacket sampling. | |
typedef enum _sai_samplepacket_mode_t | sai_samplepacket_mode_t |
SAI mode of samplepacket sampling. | |
typedef enum _sai_samplepacket_attr_t | sai_samplepacket_attr_t |
SAI attributes of samplepacket session. | |
typedef sai_status_t(* | sai_create_samplepacket_fn) (_Out_ sai_object_id_t *samplepacket_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create samplepacket session. | |
typedef sai_status_t(* | sai_remove_samplepacket_fn) (_In_ sai_object_id_t samplepacket_id) |
Remove samplepacket session. | |
typedef sai_status_t(* | sai_set_samplepacket_attribute_fn) (_In_ sai_object_id_t samplepacket_id, _In_ const sai_attribute_t *attr) |
Set samplepacket session attributes. | |
typedef sai_status_t(* | sai_get_samplepacket_attribute_fn) (_In_ sai_object_id_t samplepacket_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get samplepacket session attributes. | |
typedef struct _sai_samplepacket_api_t | sai_samplepacket_api_t |
Samplepacket method table retrieved with sai_api_query() | |
Enumerations | |
enum | _sai_samplepacket_type_t { SAI_SAMPLEPACKET_TYPE_SLOW_PATH , SAI_SAMPLEPACKET_TYPE_MIRROR_SESSION } |
SAI type of samplepacket sampling. More... | |
enum | _sai_samplepacket_mode_t { SAI_SAMPLEPACKET_MODE_EXCLUSIVE , SAI_SAMPLEPACKET_MODE_SHARED } |
SAI mode of samplepacket sampling. More... | |
enum | _sai_samplepacket_attr_t { SAI_SAMPLEPACKET_ATTR_START , SAI_SAMPLEPACKET_ATTR_SAMPLE_RATE = SAI_SAMPLEPACKET_ATTR_START , SAI_SAMPLEPACKET_ATTR_TYPE , SAI_SAMPLEPACKET_ATTR_MODE , SAI_SAMPLEPACKET_ATTR_END , SAI_SAMPLEPACKET_ATTR_CUSTOM_RANGE_START = 0x10000000 , SAI_SAMPLEPACKET_ATTR_CUSTOM_RANGE_END } |
SAI attributes of samplepacket session. More... | |
typedef sai_status_t(* sai_create_samplepacket_fn) (_Out_ sai_object_id_t *samplepacket_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create samplepacket session.
[out] | samplepacket_id | Samplepacket session id |
[in] | switch_id | Switch id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Value of attributes |
Definition at line 141 of file saisamplepacket.h.
typedef sai_status_t(* sai_get_samplepacket_attribute_fn) (_In_ sai_object_id_t samplepacket_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get samplepacket session attributes.
[in] | samplepacket_id | Samplepacket session id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Value of attribute |
Definition at line 181 of file saisamplepacket.h.
typedef sai_status_t(* sai_remove_samplepacket_fn) (_In_ sai_object_id_t samplepacket_id) |
Remove samplepacket session.
[in] | samplepacket_id | Samplepacket session id |
Definition at line 155 of file saisamplepacket.h.
typedef sai_status_t(* sai_set_samplepacket_attribute_fn) (_In_ sai_object_id_t samplepacket_id, _In_ const sai_attribute_t *attr) |
Set samplepacket session attributes.
[in] | samplepacket_id | Samplepacket session id |
[in] | attr | Value of attribute |
Definition at line 167 of file saisamplepacket.h.
SAI attributes of samplepacket session.
Definition at line 79 of file saisamplepacket.h.
SAI mode of samplepacket sampling.
Definition at line 52 of file saisamplepacket.h.
SAI type of samplepacket sampling.
Enumerator | |
---|---|
SAI_SAMPLEPACKET_TYPE_SLOW_PATH | Copy the sample packets to CPU |
SAI_SAMPLEPACKET_TYPE_MIRROR_SESSION | Copy the sample packets using mirror session |
Definition at line 39 of file saisamplepacket.h.