Skip to content

[debugcounter] Add support for SAI_IN_DROP_REASON_EGRESS_LINK_DOWN - #2333

Merged
tjchadaga merged 1 commit into
opencomputeproject:masterfrom
tsmail1441:add-egress-link-down-drop-reason
Aug 31, 2026
Merged

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

Conversation

@tsmail1441

Copy link
Copy Markdown
Contributor

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
Comment thread inc/saidebugcounter.h
* Generic counter across all forwarding pipelines when the resolved egress link is down.
* e.g.: L2 bridging, L3 routing, tunnels
*/
SAI_IN_DROP_REASON_EGRESS_LINK_DOWN,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

SAI_OUT_DROP_REASON_L3_EGRESS_LINK_DOWN already exists in sai_out_drop_reason_t. If an ASIC reports egress-link-down drops on the egress side without L2/L3 distinction,, can you consider adding a generic SAI_OUT_DROP_REASON_EGRESS_LINK_DOWN in this PR?

@JaiOCP JaiOCP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No need to deprecate the L3 drop counter. NOS can query the capability..

@tjchadaga tjchadaga added the reviewed PR is discussed in SAI Meeting label Aug 27, 2026
@tjchadaga

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
@tjchadaga
tjchadaga merged commit 591e3fb into opencomputeproject:master Aug 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed PR is discussed in SAI Meeting

5 participants