Skip to content

Commit ef6c246

Browse files
Added new attribute SAI_MIRROR_SESSION_ATTR_GUARANTEE_RATE
Signed-off-by: milos moskovljevic <milosmoskovljevic.moskva@gmail.com>
1 parent 9ca8312 commit ef6c246

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

inc/saimirror.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,22 @@ typedef enum _sai_mirror_session_attr_t
403403
*/
404404
SAI_MIRROR_SESSION_ATTR_LABEL,
405405

406+
/**
407+
* @brief Guarantee sample rate in packets per second (pps)
408+
*
409+
* While guarantee rate is not breached, all packets will be sampled (100% sampling).
410+
* Once breached, packets will be sampled based on the mirror statistics (fallback to
411+
* statistical sampling based on SAI_MIRROR_SESSION_ATTR_SAMPLE_RATE).
412+
*
413+
* This is expected to enable guaranteed sampling for very low pps flows.
414+
* A value of 0 disables the guarantee rate feature.
415+
*
416+
* @type sai_uint64_t
417+
* @flags CREATE_AND_SET
418+
* @default 0
419+
*/
420+
SAI_MIRROR_SESSION_ATTR_GUARANTEE_RATE,
421+
406422
/**
407423
* @brief End of attributes
408424
*/

0 commit comments

Comments
 (0)