Skip to content

[debugcounter] Add support for SAI_IN_DROP_REASON_EGRESS_LINK_DOWN - #2333

Open
tsmail1441 wants to merge 1 commit into
opencomputeproject:masterfrom
tsmail1441:add-egress-link-down-drop-reason
Open

[debugcounter] Add support for SAI_IN_DROP_REASON_EGRESS_LINK_DOWN#2333
tsmail1441 wants to merge 1 commit into
opencomputeproject:masterfrom
tsmail1441:add-egress-link-down-drop-reason

Conversation

@tsmail1441

Copy link
Copy Markdown

Summary

Extend the sai_in_drop_reason_t enum with SAI_IN_DROP_REASON_EGRESS_LINK_DOWN to support tracking packets dropped at ingress when the target egress port/interface is down.

Motivation

While SAI_IN_DROP_REASON_L3_EGRESS_LINK_DOWN specifically targets routed (L3) packets, certain ASIC architectures and pipelines drop traffic at ingress whenever the destination egress link is down regardless of packet type, or do not distinguish between L2 and L3 drops for this condition.

Adding SAI_IN_DROP_REASON_EGRESS_LINK_DOWN enables debug counters to generically capture egress link down drops across both L2 (bridged) and L3 (routed) traffic.

Changes

  • Modified inc/saidebugcounter.h to add SAI_IN_DROP_REASON_EGRESS_LINK_DOWN to sai_in_drop_reason_t.

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

@azure-pipelines

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

@tsmail1441
tsmail1441 force-pushed the add-egress-link-down-drop-reason branch from 9506661 to 6f00183 Compare August 18, 2026 22:02
Comment thread inc/saidebugcounter.h Outdated
@tsmail1441
tsmail1441 force-pushed the add-egress-link-down-drop-reason branch from 6f00183 to fb31455 Compare August 18, 2026 23:31
Comment thread inc/saidebugcounter.h Outdated
@tsmail1441 tsmail1441 closed this Aug 19, 2026
@tsmail1441
tsmail1441 force-pushed the add-egress-link-down-drop-reason branch from fb31455 to 01535dc Compare August 19, 2026 20:55
Extend the `sai_in_drop_reason_t` enum with `SAI_IN_DROP_REASON_EGRESS_LINK_DOWN` to support tracking packets dropped at ingress when the target egress port/interface is down.

While `SAI_IN_DROP_REASON_L3_EGRESS_LINK_DOWN` specifically targets routed (L3) packets, certain ASIC architectures and pipelines drop traffic at ingress whenever the destination egress link is down regardless of packet type, or do not distinguish between L2 and L3 drops for this condition.

Adding `SAI_IN_DROP_REASON_EGRESS_LINK_DOWN` enables debug counters to generically capture egress link down drops across both L2 (bridged) and L3 (routed) traffic.

Change-Id: Ifb3b440f79f0eacccb6138b4d02410dcb0d02ebd
Signed-off-by: Tommy Smail <tommysmail@google.com>
@tsmail1441 tsmail1441 reopened this Aug 19, 2026
@azure-pipelines

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

@tsmail1441
tsmail1441 requested a review from kcudnik August 19, 2026 22: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.

2 participants