-
Notifications
You must be signed in to change notification settings - Fork 601
Added new attribute SAI_MIRROR_SESSION_ATTR_GUARANTEE_RATE #2276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR adds SAI_MIRROR_SESSION_ATTR_GUARANTEE_RATE to complement the existing SAI_MIRROR_SESSION_ATTR_SAMPLE_RATE on mirror sessions object. Similar 1-in-N statistical sampling concept (SAI_SAMPLEPACKET_ATTR_SAMPLE_RATE) exists independently on SAI_OBJECT_TYPE_SAMPLEPACKET in saisamplepacket.h as well SAI defines two sampling architectures: Does this PR scopes to extend the saisamplepacket.h as well ? |
||
|
|
||
| /** | ||
| * @brief End of attributes | ||
| */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newly introduced attr - SAI_MIRROR_SESSION_ATTR_GUARANTEE_RATE is in packet-rate threshold(pps) and existing SAI_MIRROR_SESSION_ATTR_SAMPLE_RATE statistical sampling (1:N statistical ratio) - Since these attribute operate in different domain - can you define the interaction semantics in this proposal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added the documentation, it should be much clearer now.