Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions inc/saimirror.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,22 @@ typedef enum _sai_mirror_session_attr_t
*/
SAI_MIRROR_SESSION_ATTR_LABEL,

/**
* @brief Guarantee sample rate in packets per second (pps)
*
* While guarantee rate is not breached, all packets will be sampled (100% sampling).
* Once breached, packets will be sampled based on the mirror statistics (fallback to
* statistical sampling based on SAI_MIRROR_SESSION_ATTR_SAMPLE_RATE).
*
* This is expected to enable guaranteed sampling for very low pps flows.
* A value of 0 disables the guarantee rate feature.
*
* @type sai_uint64_t
* @flags CREATE_AND_SET
* @default 0
*/
SAI_MIRROR_SESSION_ATTR_GUARANTEE_RATE,

/**
* @brief End of attributes
*/
Expand Down
Loading