25#if !defined (__SAISAMPLEPACKET_H_)
26#define __SAISAMPLEPACKET_H_
142 _Out_ sai_object_id_t *samplepacket_id,
143 _In_ sai_object_id_t switch_id,
144 _In_ uint32_t attr_count,
156 _In_ sai_object_id_t samplepacket_id);
168 _In_ sai_object_id_t samplepacket_id,
182 _In_ sai_object_id_t samplepacket_id,
183 _In_ uint32_t attr_count,
_sai_samplepacket_mode_t
SAI mode of samplepacket sampling.
_sai_samplepacket_type_t
SAI type of samplepacket sampling.
struct _sai_samplepacket_api_t sai_samplepacket_api_t
Samplepacket method table retrieved with sai_api_query()
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.
enum _sai_samplepacket_mode_t sai_samplepacket_mode_t
SAI mode of samplepacket sampling.
enum _sai_samplepacket_type_t sai_samplepacket_type_t
SAI type of samplepacket sampling.
_sai_samplepacket_attr_t
SAI attributes of samplepacket session.
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.
enum _sai_samplepacket_attr_t sai_samplepacket_attr_t
SAI attributes of samplepacket session.
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.
sai_status_t(* sai_remove_samplepacket_fn)(_In_ sai_object_id_t samplepacket_id)
Remove samplepacket session.
@ SAI_SAMPLEPACKET_MODE_SHARED
An instance of sample packet session.
@ SAI_SAMPLEPACKET_MODE_EXCLUSIVE
A profile defining sample packet attributes.
@ SAI_SAMPLEPACKET_TYPE_MIRROR_SESSION
@ SAI_SAMPLEPACKET_TYPE_SLOW_PATH
@ SAI_SAMPLEPACKET_ATTR_TYPE
Samplepacket switching type.
@ SAI_SAMPLEPACKET_ATTR_MODE
Samplepacket mode.
@ SAI_SAMPLEPACKET_ATTR_END
End of attributes.
@ SAI_SAMPLEPACKET_ATTR_START
Start of attributes.
@ SAI_SAMPLEPACKET_ATTR_CUSTOM_RANGE_START
@ SAI_SAMPLEPACKET_ATTR_CUSTOM_RANGE_END
@ SAI_SAMPLEPACKET_ATTR_SAMPLE_RATE
Sampling rate of type.
This module defines SAI portable types.
Samplepacket method table retrieved with sai_api_query()