Skip to content

Conversation

@r12f
Copy link
Contributor

@r12f r12f commented Feb 16, 2024

This change adds the SAI API changes for enabling the load balancer fast path scenario.

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,

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??

Copy link
Contributor Author

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.

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,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do ENI miss bytes indicate?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The 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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

@r12f
Copy link
Contributor Author

r12f commented Feb 21, 2024

thanks a lot for the review and approval, Kamil, Sushant and Marian! since we have all parties signed off, I think this change should be ready to merge now. :D

@rlhui rlhui merged commit d90568e into opencomputeproject:master Feb 29, 2024
JaiOCP pushed a commit to JaiOCP/SAI that referenced this pull request Mar 7, 2024
…teproject#1966)

This change adds the SAI API changes for enabling the load balancer fast path scenario.

DASH load balancer fast path HLD: https://github.com/sonic-net/DASH/blob/main/documentation/load-bal-service/fast-path-icmp-flow-redirection.md
Change that used to generate the headers: [dash-p4] Update DASH BM P4 code for fast path SAI API generation sonic-net/DASH#517

Signed-off-by: r12f <[email protected]>
@r12f r12f deleted the user/r12f/fp-sai branch March 18, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants