-
Notifications
You must be signed in to change notification settings - Fork 554
Adding DASH SAI APIs for load balancer fast path scenario. #1966
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
Changes from all commits
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 |
|---|---|---|
|
|
@@ -52,6 +52,18 @@ typedef enum _sai_port_stat_extensions_t | |
| { | ||
| SAI_PORT_STAT_EXTENSIONS_RANGE_START = SAI_PORT_STAT_END, | ||
|
|
||
| /** DASH port LB_FAST_PATH_ICMP_IN_BYTES stat count */ | ||
| SAI_PORT_STAT_LB_FAST_PATH_ICMP_IN_BYTES = SAI_PORT_STAT_EXTENSIONS_RANGE_START, | ||
|
|
||
| /** DASH port LB_FAST_PATH_ICMP_IN_PACKETS stat count */ | ||
| SAI_PORT_STAT_LB_FAST_PATH_ICMP_IN_PACKETS, | ||
|
|
||
| /** DASH port LB_FAST_PATH_ENI_MISS_BYTES stat count */ | ||
| SAI_PORT_STAT_LB_FAST_PATH_ENI_MISS_BYTES, | ||
|
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. What do ENI miss bytes indicate? 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. 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. Please confirm if these are DPU level counters. e.g., if a packet if given to a DPU due to PA match, but no ENI match happened once it hits DPU and packet is dropped?
Contributor
Author
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. yes, these are DPU level counters. and yes, it is designed to capture the exact case you are referring to. In this case, nothing will show up on ENI counters. With this counter, we will know what there are valid fast path packets gets dropped, because ENI cannot be found. |
||
|
|
||
| /** DASH port LB_FAST_PATH_ENI_MISS_PACKETS stat count */ | ||
| SAI_PORT_STAT_LB_FAST_PATH_ENI_MISS_PACKETS, | ||
|
|
||
| /* Add new experimental port stats above this line */ | ||
|
|
||
| SAI_PORT_STAT_EXTENSIONS_RANGE_END | ||
|
|
||
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.
is this to count number of icmp_redirect packets, or just icmp packets??
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.
these counters are specific to LB fast path ICMP packets, not regular ICMP packets or regular ICMP redirect packets that we might not care, e.g. IPv6 ICMP packets with non-zero payload size.