Skip to content

Commit 0eb0dfa

Browse files
committed
Packet trimming: Add counter description
Signed-off-by: Running Huang <[email protected]>
1 parent 0bed1a5 commit 0eb0dfa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/SAI-Proposal-Packet-Trimming.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,15 @@ typedef enum _sai_packet_trim_dscp_resolution_mode_t
212212
*/
213213
SAI_SWITCH_ATTR_PACKET_TRIM_DSCP_RESOLUTION_MODE,
214214
```
215+
216+
## Counter
217+
|Header file|SAI attribute|Description|
218+
|-----------|-------------|-----------|
219+
|saiswitch.h|SAI_SWITCH_STAT_DROPPED_TRIM_PACKETS|Global counter (aggregated value of all ports) of packets trimmed but dropped due to failed shared buffer admission on a trim queue|
220+
| |SAI_SWITCH_STAT_TX_TRIM_PACKETS|Global counter (aggregated value of all ports) of packets trimmed and successfully sent via a trim queue|
221+
|saiport.h |SAI_PORT_STAT_TRIM_PACKETS|Per-port counter of packets trimmed due to failed shared buffer admission|
222+
| |SAI_PORT_STAT_DROPPED_TRIM_PACKETS|Per-port counter of packets trimmed but dropped due to failed shared buffer admission on a trim queue|
223+
| |SAI_PORT_STAT_TX_TRIM_PACKETS|Per-port counter of packets trimmed and successfully sent via a trim queue|
224+
|saiqueue.h |SAI_QUEUE_STAT_TRIM_PACKETS|Per-queue counter of packets trimmed on trimming-eligible queue due to failed shared buffer admission|
225+
| |SAI_QUEUE_STAT_DROPPED_TRIM_PACKETS|Per-queue counter of packets trimmed on trimming-eligible queue but dropped due to failed shared buffer admission on a trim queue|
226+
| |SAI_QUEUE_STAT_TX_TRIM_PACKETS|Per-queue counter of packets trimmed on trimming-eligible queue and successfully sent via a trim queue|

0 commit comments

Comments
 (0)