Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions inc/saiqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@ typedef enum _sai_queue_stat_t
/** Packets trimmed and successfully transmitted on a trim queue. Counted on the original trimming-eligible queue [uint64_t] */
SAI_QUEUE_STAT_TX_TRIM_PACKETS = 0x0000002e,

/** Get packets deleted from a queue when PFC Deadlock Recovery is triggered with SAI_PACKET_ACTION_DROP [uint64_t] */
SAI_QUEUE_STAT_PFC_DLR_DELETED_PACKETS = 0x0000002f,

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.

@msherif1234 shall we name them dropped instead of deleted ? Also, will this count packets dropped

  1. if SW based recovery happens and acl drops the packets on port, egress queue
  2. if HW based recovery happens and HW drops packets on port, egress queue

@msherif1234 msherif1234 Jun 18, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

we tried to use deleted instead of dropped to align with an existing similar field as stated in the PR description.
for either sw/hw recovery this will count the dropped packets and its orthogonal to acl drops


/** Get bytes deleted from a queue when PFC Deadlock Recovery is triggered with SAI_PACKET_ACTION_DROP [uint64_t] */
SAI_QUEUE_STAT_PFC_DLR_DELETED_BYTES = 0x00000030,

/** Custom range base value */
SAI_QUEUE_STAT_CUSTOM_RANGE_BASE = 0x10000000

Expand Down
Loading