Skip to content

Packet Drop Monitoring#2289

Closed
JaiOCP wants to merge 6 commits into
opencomputeproject:masterfrom
JaiOCP:SMOD
Closed

Packet Drop Monitoring#2289
JaiOCP wants to merge 6 commits into
opencomputeproject:masterfrom
JaiOCP:SMOD

Conversation

@JaiOCP
Copy link
Copy Markdown
Contributor

@JaiOCP JaiOCP commented May 28, 2026

Packet drops are critical in AI fabrics and need to be monitored closely.
This PR brings in changes to support packet drop monitoring.

JaiOCP and others added 5 commits May 28, 2026 15:27
Signed-off-by: JaiOCP <jai.kumar@broadcom.com>

Packet Drop Monitoring

Signed-off-by: JaiOCP <jai.kumar@broadcom.com>

Packet Drop Monitoring

Signed-off-by: JaiOCP <jai.kumar@broadcom.com>

Packet Drop Monitoring

Signed-off-by: JaiOCP <jai.kumar@broadcom.com>
…ssing (opencomputeproject#2282)

Why:
To fix below build error

Uncaught exception from user code:
	 at gensairpc.pl line 480.
		main::assign_attr_types(HASH(0x55e190dc20c8), ARRAY(0x55e190d2d080)) called at gensairpc.pl line 434
		main::get_definitions() called at gensairpc.pl line 156
	main::assign_attr_types(HASH(0x55e190dc20c8), ARRAY(0x55e190d2d080)) called at gensairpc.pl line 434
	main::get_definitions() called at gensairpc.pl line 156

How:
gensairpc.pl crashed during SAI thrift build with an uncaught exception
at line 480 (assign_attr_types) because its inline Doxygen layout
detection was too weak - it only checked sai_8h.xml for any enumvalue
presence, missing cases where the new Doxygen 1.9.8+ XML structure
requires group__*.xml files to be processed for complete definitions.
This caused incomplete parsing, leading to missing types and a croak
in assign_attr_types when sai_attribute_value_t could not be found.

Changes:
- xmlutils.pm: Add NeedsTwoPassProcessing and export it.
- parse.pl: Remove local NeedsTwoPassProcessing; use imported version.
- gensairpc.pl: Replace inline detection with NeedsTwoPassProcessing()
  call, fixing the build failure and eliminating code duplication.

Signed-off-by: Pavan Naregundi <pnaregundi@marvell.com>
)

Signed-off-by: Chikkegowda Chikkaiah <cchikkai@cisco.com>
@JaiOCP JaiOCP closed this May 28, 2026
@JaiOCP JaiOCP deleted the SMOD branch May 28, 2026 22:39
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.

4 participants