Skip to content

[debug_counter] Add support for SAI_IN_DROP_REASON_LPM_ANY - #2354

Open
tsmail1441 wants to merge 1 commit into
opencomputeproject:masterfrom
tsmail1441:add-lpm-any-drop-reason
Open

tsmail1441 wants to merge 1 commit into
opencomputeproject:masterfrom
tsmail1441:add-lpm-any-drop-reason

Conversation

@tsmail1441

Copy link
Copy Markdown
Contributor

Summary

Introduce SAI_IN_DROP_REASON_LPM_ANY to support ingress drop counting for both IPv4 and IPv6 L3 route lookup drops across various forwarding implementations and routing modes.

Motivation

Depending on hardware architecture and routing table configurations, unrouted or dropped L3 packets may not always trigger a native hardware lookup miss; they may instead be dropped by explicit route discard entries. Consequently, relying solely on SAI_IN_DROP_REASON_LPM_MISS can result in undercounting unrouted packets, while tracking broader L3 drop categories can conflate route resolution drops with unrelated forwarding drops.
SAI_IN_DROP_REASON_LPM_ANY resolves this by providing a unified drop reason that captures both IPv4 and IPv6 packets dropped due to LPM table misses or explicit route discard actions, providing consistent drop accounting across both address families.

Changes

  • Add SAI_IN_DROP_REASON_LPM_ANY enum to inc/saidebugcounter.h.

Signed-off-by: Tommy Smail tommysmail@google.com

Introduce SAI_IN_DROP_REASON_LPM_ANY to support ingress drop counting for L3 route lookup drops across various forwarding implementations and routing modes.

Depending on hardware architecture and routing table configurations, unrouted or dropped L3 packets may not always trigger a native hardware lookup miss; they may instead be dropped by explicit route discard entries. Consequently, relying solely on SAI_IN_DROP_REASON_LPM_MISS can result in undercounting unrouted packets, while tracking broader L3 drop categories can conflate route resolution drops with unrelated forwarding drops.

SAI_IN_DROP_REASON_LPM_ANY resolves this by providing a unified drop reason that captures packets dropped due to both LPM table misses and route discard actions.

Changes: - Add SAI_IN_DROP_REASON_LPM_ANY enum to saidebugcounter.h.
Change-Id: Ie11798439319cb29cf393a173afb1a2fede8ad19
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

1 participant