Skip to content

Commit

Permalink
Add SAI_MIRROR_SESSION_ATTR_POLICER to mirror session attributes (#899)
Browse files Browse the repository at this point in the history
Enable the ability to attach a policer to the mirror session to throttle
the mirrored packets without affecting the original traffic.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
  • Loading branch information
Shuotian Cheng authored and lguohan committed Dec 7, 2018
1 parent ed7cdb1 commit 0deb247
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions inc/saimirror.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,17 @@ typedef enum _sai_mirror_session_attr_t
*/
SAI_MIRROR_SESSION_ATTR_GRE_PROTOCOL_TYPE,

/**
* @brief Mirror session policer object ID
*
* @type sai_object_id_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_POLICER
* @allownull true
* @default SAI_NULL_OBJECT_ID
*/
SAI_MIRROR_SESSION_ATTR_POLICER,

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

0 comments on commit 0deb247

Please sign in to comment.