SAI Metadata
Loading...
Searching...
No Matches
saisamplepacket.h
Go to the documentation of this file.
1
25#if !defined (__SAISAMPLEPACKET_H_)
26#define __SAISAMPLEPACKET_H_
27
28#include <saitypes.h>
29
40{
43
46
48
53{
64
73
75
80{
85
98
107
116
121
124
127
129
141typedef sai_status_t (*sai_create_samplepacket_fn)(
142 _Out_ sai_object_id_t *samplepacket_id,
143 _In_ sai_object_id_t switch_id,
144 _In_ uint32_t attr_count,
145 _In_ const sai_attribute_t *attr_list);
146
155typedef sai_status_t (*sai_remove_samplepacket_fn)(
156 _In_ sai_object_id_t samplepacket_id);
157
167typedef sai_status_t (*sai_set_samplepacket_attribute_fn)(
168 _In_ sai_object_id_t samplepacket_id,
169 _In_ const sai_attribute_t *attr);
170
181typedef sai_status_t (*sai_get_samplepacket_attribute_fn)(
182 _In_ sai_object_id_t samplepacket_id,
183 _In_ uint32_t attr_count,
184 _Inout_ sai_attribute_t *attr_list);
185
190{
191 sai_create_samplepacket_fn create_samplepacket;
192 sai_remove_samplepacket_fn remove_samplepacket;
193 sai_set_samplepacket_attribute_fn set_samplepacket_attribute;
194 sai_get_samplepacket_attribute_fn get_samplepacket_attribute;
195
197
201#endif
_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()