SAI Metadata
Loading...
Searching...
No Matches
SAI - QOS Queue specific API definitions.

Classes

struct  _sai_queue_deadlock_notification_data_t
 Notification data format received from SAI queue deadlock event callback. More...
 
struct  _sai_queue_api_t
 QOS methods table retrieved with sai_api_query() More...
 

Typedefs

typedef enum _sai_queue_type_t sai_queue_type_t
 Enum defining Queue types.
 
typedef enum _sai_queue_pfc_continuous_deadlock_state_t sai_queue_pfc_continuous_deadlock_state_t
 Enum defining queue PFC continuous deadlock state.
 
typedef enum _sai_queue_attr_t sai_queue_attr_t
 Enum defining queue attributes.
 
typedef enum _sai_queue_stat_t sai_queue_stat_t
 Enum defining statistics for Queue.
 
typedef enum _sai_queue_pfc_deadlock_event_type_t sai_queue_pfc_deadlock_event_type_t
 Enum defining Queue deadlock event state.
 
typedef struct _sai_queue_deadlock_notification_data_t sai_queue_deadlock_notification_data_t
 Notification data format received from SAI queue deadlock event callback.
 
typedef sai_status_t(* sai_create_queue_fn) (_Out_ sai_object_id_t *queue_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
 Create queue.
 
typedef sai_status_t(* sai_remove_queue_fn) (_In_ sai_object_id_t queue_id)
 Remove queue.
 
typedef sai_status_t(* sai_set_queue_attribute_fn) (_In_ sai_object_id_t queue_id, _In_ const sai_attribute_t *attr)
 Set attribute to Queue.
 
typedef sai_status_t(* sai_get_queue_attribute_fn) (_In_ sai_object_id_t queue_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
 Get attribute to Queue.
 
typedef sai_status_t(* sai_get_queue_stats_fn) (_In_ sai_object_id_t queue_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _Out_ uint64_t *counters)
 Get queue statistics counters. Deprecated for backward compatibility.
 
typedef sai_status_t(* sai_get_queue_stats_ext_fn) (_In_ sai_object_id_t queue_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _In_ sai_stats_mode_t mode, _Out_ uint64_t *counters)
 Get queue statistics counters extended.
 
typedef sai_status_t(* sai_clear_queue_stats_fn) (_In_ sai_object_id_t queue_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids)
 Clear queue statistics counters.
 
typedef void(* sai_queue_pfc_deadlock_notification_fn) (_In_ uint32_t count, _In_ const sai_queue_deadlock_notification_data_t *data)
 Queue PFC deadlock event notification.
 
typedef struct _sai_queue_api_t sai_queue_api_t
 QOS methods table retrieved with sai_api_query()
 

Enumerations

enum  _sai_queue_type_t {
  SAI_QUEUE_TYPE_ALL = 0x00000000 , SAI_QUEUE_TYPE_UNICAST = 0x00000001 , SAI_QUEUE_TYPE_MULTICAST = 0x00000002 , SAI_QUEUE_TYPE_UNICAST_VOQ = 0x00000003 ,
  SAI_QUEUE_TYPE_MULTICAST_VOQ = 0x00000004 , SAI_QUEUE_TYPE_FABRIC_TX = 0x00000005 , SAI_QUEUE_TYPE_CUSTOM_RANGE_BASE = 0x10000000
}
 Enum defining Queue types. More...
 
enum  _sai_queue_pfc_continuous_deadlock_state_t { SAI_QUEUE_PFC_CONTINUOUS_DEADLOCK_STATE_NOT_PAUSED = 0x00000000 , SAI_QUEUE_PFC_CONTINUOUS_DEADLOCK_STATE_PAUSED = 0x00000001 , SAI_QUEUE_PFC_CONTINUOUS_DEADLOCK_STATE_PAUSED_NOT_CONTINUOUS = 0x00000002 }
 Enum defining queue PFC continuous deadlock state. More...
 
enum  _sai_queue_attr_t {
  SAI_QUEUE_ATTR_START = 0x00000000 , SAI_QUEUE_ATTR_TYPE = SAI_QUEUE_ATTR_START , SAI_QUEUE_ATTR_PORT = 0x00000001 , SAI_QUEUE_ATTR_INDEX = 0x00000002 ,
  SAI_QUEUE_ATTR_PARENT_SCHEDULER_NODE = 0x00000003 , SAI_QUEUE_ATTR_WRED_PROFILE_ID = 0x00000004 , SAI_QUEUE_ATTR_BUFFER_PROFILE_ID = 0x00000005 , SAI_QUEUE_ATTR_SCHEDULER_PROFILE_ID = 0x00000006 ,
  SAI_QUEUE_ATTR_PAUSE_STATUS = 0x00000007 , SAI_QUEUE_ATTR_ENABLE_PFC_DLDR = 0x00000008 , SAI_QUEUE_ATTR_PFC_DLR_INIT = 0x00000009 , SAI_QUEUE_ATTR_TAM_OBJECT ,
  SAI_QUEUE_ATTR_PFC_DLR_PACKET_ACTION , SAI_QUEUE_ATTR_PFC_CONTINUOUS_DEADLOCK_STATE , SAI_QUEUE_ATTR_END , SAI_QUEUE_ATTR_CUSTOM_RANGE_START = 0x10000000 ,
  SAI_QUEUE_ATTR_CUSTOM_RANGE_END
}
 Enum defining queue attributes. More...
 
enum  _sai_queue_stat_t {
  SAI_QUEUE_STAT_PACKETS = 0x00000000 , SAI_QUEUE_STAT_BYTES = 0x00000001 , SAI_QUEUE_STAT_DROPPED_PACKETS = 0x00000002 , SAI_QUEUE_STAT_DROPPED_BYTES = 0x00000003 ,
  SAI_QUEUE_STAT_GREEN_PACKETS = 0x00000004 , SAI_QUEUE_STAT_GREEN_BYTES = 0x00000005 , SAI_QUEUE_STAT_GREEN_DROPPED_PACKETS = 0x00000006 , SAI_QUEUE_STAT_GREEN_DROPPED_BYTES = 0x00000007 ,
  SAI_QUEUE_STAT_YELLOW_PACKETS = 0x00000008 , SAI_QUEUE_STAT_YELLOW_BYTES = 0x00000009 , SAI_QUEUE_STAT_YELLOW_DROPPED_PACKETS = 0x0000000a , SAI_QUEUE_STAT_YELLOW_DROPPED_BYTES = 0x0000000b ,
  SAI_QUEUE_STAT_RED_PACKETS = 0x0000000c , SAI_QUEUE_STAT_RED_BYTES = 0x0000000d , SAI_QUEUE_STAT_RED_DROPPED_PACKETS = 0x0000000e , SAI_QUEUE_STAT_RED_DROPPED_BYTES = 0x0000000f ,
  SAI_QUEUE_STAT_GREEN_WRED_DROPPED_PACKETS = 0x00000010 , SAI_QUEUE_STAT_GREEN_WRED_DROPPED_BYTES = 0x00000011 , SAI_QUEUE_STAT_YELLOW_WRED_DROPPED_PACKETS = 0x00000012 , SAI_QUEUE_STAT_YELLOW_WRED_DROPPED_BYTES = 0x00000013 ,
  SAI_QUEUE_STAT_RED_WRED_DROPPED_PACKETS = 0x00000014 , SAI_QUEUE_STAT_RED_WRED_DROPPED_BYTES = 0x00000015 , SAI_QUEUE_STAT_WRED_DROPPED_PACKETS = 0x00000016 , SAI_QUEUE_STAT_WRED_DROPPED_BYTES = 0x00000017 ,
  SAI_QUEUE_STAT_CURR_OCCUPANCY_BYTES = 0x00000018 , SAI_QUEUE_STAT_WATERMARK_BYTES = 0x00000019 , SAI_QUEUE_STAT_SHARED_CURR_OCCUPANCY_BYTES = 0x0000001a , SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES = 0x0000001b ,
  SAI_QUEUE_STAT_GREEN_WRED_ECN_MARKED_PACKETS = 0x0000001c , SAI_QUEUE_STAT_GREEN_WRED_ECN_MARKED_BYTES = 0x0000001d , SAI_QUEUE_STAT_YELLOW_WRED_ECN_MARKED_PACKETS = 0x0000001e , SAI_QUEUE_STAT_YELLOW_WRED_ECN_MARKED_BYTES = 0x0000001f ,
  SAI_QUEUE_STAT_RED_WRED_ECN_MARKED_PACKETS = 0x00000020 , SAI_QUEUE_STAT_RED_WRED_ECN_MARKED_BYTES = 0x00000021 , SAI_QUEUE_STAT_WRED_ECN_MARKED_PACKETS = 0x00000022 , SAI_QUEUE_STAT_WRED_ECN_MARKED_BYTES = 0x00000023 ,
  SAI_QUEUE_STAT_CURR_OCCUPANCY_LEVEL = 0x00000024 , SAI_QUEUE_STAT_WATERMARK_LEVEL = 0x00000025 , SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS = 0x00000026 , SAI_QUEUE_STAT_CUSTOM_RANGE_BASE = 0x10000000
}
 Enum defining statistics for Queue. More...
 
enum  _sai_queue_pfc_deadlock_event_type_t { SAI_QUEUE_PFC_DEADLOCK_EVENT_TYPE_DETECTED , SAI_QUEUE_PFC_DEADLOCK_EVENT_TYPE_RECOVERED }
 Enum defining Queue deadlock event state. More...
 

Detailed Description

Typedef Documentation

◆ sai_clear_queue_stats_fn

typedef sai_status_t(* sai_clear_queue_stats_fn) (_In_ sai_object_id_t queue_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids)

Clear queue statistics counters.

Parameters
[in]queue_idQueue id
[in]number_of_countersNumber of counters in the array
[in]counter_idsSpecifies the array of counter ids
Returns
SAI_STATUS_SUCCESS on success, failure status code on error

Definition at line 537 of file saiqueue.h.

◆ sai_create_queue_fn

typedef sai_status_t(* sai_create_queue_fn) (_Out_ sai_object_id_t *queue_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)

Create queue.

Parameters
[out]queue_idQueue id
[in]switch_idSwitch id
[in]attr_countNumber of attributes
[in]attr_listArray of attributes
Returns
SAI_STATUS_SUCCESS on success, failure status code on error

Definition at line 452 of file saiqueue.h.

◆ sai_get_queue_attribute_fn

typedef sai_status_t(* sai_get_queue_attribute_fn) (_In_ sai_object_id_t queue_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)

Get attribute to Queue.

Parameters
[in]queue_idQueue id to set the attribute
[in]attr_countNumber of attributes
[in,out]attr_listArray of attributes
Returns
SAI_STATUS_SUCCESS on success, failure status code on error

Definition at line 489 of file saiqueue.h.

◆ sai_get_queue_stats_ext_fn

typedef sai_status_t(* sai_get_queue_stats_ext_fn) (_In_ sai_object_id_t queue_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _In_ sai_stats_mode_t mode, _Out_ uint64_t *counters)

Get queue statistics counters extended.

Parameters
[in]queue_idQueue id
[in]number_of_countersNumber of counters in the array
[in]counter_idsSpecifies the array of counter ids
[in]modeStatistics mode
[out]countersArray of resulting counter values.
Returns
SAI_STATUS_SUCCESS on success, failure status code on error

Definition at line 521 of file saiqueue.h.

◆ sai_get_queue_stats_fn

typedef sai_status_t(* sai_get_queue_stats_fn) (_In_ sai_object_id_t queue_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _Out_ uint64_t *counters)

Get queue statistics counters. Deprecated for backward compatibility.

Parameters
[in]queue_idQueue id
[in]number_of_countersNumber of counters in the array
[in]counter_idsSpecifies the array of counter ids
[out]countersArray of resulting counter values.
Returns
SAI_STATUS_SUCCESS on success, failure status code on error

Definition at line 504 of file saiqueue.h.

◆ sai_queue_pfc_deadlock_notification_fn

typedef void(* sai_queue_pfc_deadlock_notification_fn) (_In_ uint32_t count, _In_ const sai_queue_deadlock_notification_data_t *data)

Queue PFC deadlock event notification.

Passed as a parameter into sai_initialize_switch()

Count:
data[count]
Parameters
[in]countNumber of notifications
[in]dataArray of queue event types

Definition at line 552 of file saiqueue.h.

◆ sai_remove_queue_fn

typedef sai_status_t(* sai_remove_queue_fn) (_In_ sai_object_id_t queue_id)

Remove queue.

Parameters
[in]queue_idQueue id
Returns
SAI_STATUS_SUCCESS on success, failure status code on error

Definition at line 465 of file saiqueue.h.

◆ sai_set_queue_attribute_fn

typedef sai_status_t(* sai_set_queue_attribute_fn) (_In_ sai_object_id_t queue_id, _In_ const sai_attribute_t *attr)

Set attribute to Queue.

Parameters
[in]queue_idQueue ID to set the attribute
[in]attrAttribute to set
Returns
SAI_STATUS_SUCCESS on success, failure status code on error

Definition at line 476 of file saiqueue.h.

Enumeration Type Documentation

◆ _sai_queue_attr_t

Enum defining queue attributes.

Enumerator
SAI_QUEUE_ATTR_START 

Start of attributes.

SAI_QUEUE_ATTR_TYPE 

Queue type.

Value Type:
sai_queue_type_t
Flags:
MANDATORY_ON_CREATE | CREATE_ONLY | KEY
SAI_QUEUE_ATTR_PORT 

Port id.

Value Type:
sai_object_id_t
Flags:
MANDATORY_ON_CREATE | CREATE_ONLY | KEY
Allowed object types
SAI_OBJECT_TYPE_PORT
SAI_QUEUE_ATTR_INDEX 

Queue index.

Value Type:
sai_uint8_t
Flags:
MANDATORY_ON_CREATE | CREATE_ONLY | KEY
SAI_QUEUE_ATTR_PARENT_SCHEDULER_NODE 

Parent scheduler node.

In case of Hierarchical QOS not supported, the parent node is the port. Condition on whether Hierarchical QOS is supported or not, need to remove the MANDATORY_ON_CREATE FLAG when HQoS is introduced.

Value Type:
sai_object_id_t
Flags:
MANDATORY_ON_CREATE | CREATE_AND_SET
Allowed object types
SAI_OBJECT_TYPE_SCHEDULER_GROUP, SAI_OBJECT_TYPE_PORT
SAI_QUEUE_ATTR_WRED_PROFILE_ID 

Attach WRED ID to queue.

ID = SAI_NULL_OBJECT_ID to disable WRED

Value Type:
sai_object_id_t
Flags:
CREATE_AND_SET
Allowed object types
SAI_OBJECT_TYPE_WRED
Allows NULL object ID
true
Default value:
SAI_NULL_OBJECT_ID
SAI_QUEUE_ATTR_BUFFER_PROFILE_ID 

Attach buffer profile to queue.

Value Type:
sai_object_id_t
Flags:
CREATE_AND_SET
Allowed object types
SAI_OBJECT_TYPE_BUFFER_PROFILE
Allows NULL object ID
true
Default value:
SAI_NULL_OBJECT_ID
SAI_QUEUE_ATTR_SCHEDULER_PROFILE_ID 

Attach scheduler to queue.

Value Type:
sai_object_id_t
Flags:
CREATE_AND_SET
Allowed object types
SAI_OBJECT_TYPE_SCHEDULER
Allows NULL object ID
true
Default value:
SAI_NULL_OBJECT_ID
SAI_QUEUE_ATTR_PAUSE_STATUS 

Queue pause status.

This attribute represents the queue internal hardware state and is updated upon receiving PFC frames. True indicates the queue is paused.

Value Type:
bool
Flags:
READ_ONLY
SAI_QUEUE_ATTR_ENABLE_PFC_DLDR 

Enable PFC Deadlock Detection and Recovery (DLDR) on a lossless queue.

A deadlock is assumed to have occurred when a queue is in a XOFF state for more than a configurable (SAI_SWITCH_ATTR_PFC_TC_DLD_INTERVAL) amount of time.

Value Type:
bool
Flags:
CREATE_AND_SET
Default value:
false
SAI_QUEUE_ATTR_PFC_DLR_INIT 

Start PFC deadlock recovery on a lossless queue.

If the attribute is true, start the recovery and ignore if recovery has been started. If the attribute is false, stop the recovery and ignore if recovery hasn't been started.

Value Type:
bool
Flags:
CREATE_AND_SET
Default value:
false
SAI_QUEUE_ATTR_TAM_OBJECT 

Queue bind point for TAM object.

Value Type:
sai_object_list_t
Flags:
CREATE_AND_SET
Allowed object types
SAI_OBJECT_TYPE_TAM
Default value:
empty
SAI_QUEUE_ATTR_PFC_DLR_PACKET_ACTION 

Control for buffered and incoming packets on a queue undergoing PFC Deadlock Recovery.

This control applies to all packets on the queue.

Value Type:
sai_packet_action_t
Flags:
CREATE_AND_SET
Default value:
SAI_PACKET_ACTION_DROP
SAI_QUEUE_ATTR_PFC_CONTINUOUS_DEADLOCK_STATE 

Queue PFC continuous deadlock state.

This attribute represents the queue's internal hardware PFC continuous deadlock state. It is an aggregation of all HW state used to determine if a queue is in PFC deadlock based on state cached/maintained by the SDK. Consecutive queries of this attribute provide the PFC state for the queue for the interval period between the queries.

This attribute should only be queried as part of the PFC deadlock and recovery detection processing.

Value Type:
sai_queue_pfc_continuous_deadlock_state_t
Flags:
READ_ONLY
SAI_QUEUE_ATTR_END 

End of attributes.

SAI_QUEUE_ATTR_CUSTOM_RANGE_START 

Custom range base value

SAI_QUEUE_ATTR_CUSTOM_RANGE_END 

End of custom range base

Definition at line 102 of file saiqueue.h.

◆ _sai_queue_pfc_continuous_deadlock_state_t

Enum defining queue PFC continuous deadlock state.

Enumerator
SAI_QUEUE_PFC_CONTINUOUS_DEADLOCK_STATE_NOT_PAUSED 

PFC continuous deadlock state not paused.

H/w queue PFC state is not paused. Queue can forward packets.

SAI_QUEUE_PFC_CONTINUOUS_DEADLOCK_STATE_PAUSED 

PFC continuous deadlock state paused.

H/w queue is paused off and has not resumed or forwarded packets since the last time the SAI_QUEUE_ATTR_PFC_CONTINUOUS_DEADLOCK_STATE attribute for this queue was polled.

SAI_QUEUE_PFC_CONTINUOUS_DEADLOCK_STATE_PAUSED_NOT_CONTINUOUS 

PFC continuous deadlock state paused, but not continuously.

H/w queue is paused off, but was not paused off for the full interval that the SAI_QUEUE_ATTR_PFC_CONTINUOUS_DEADLOCK_STATE attribute for this queue was last polled.

Definition at line 67 of file saiqueue.h.

◆ _sai_queue_pfc_deadlock_event_type_t

Enum defining Queue deadlock event state.

Enumerator
SAI_QUEUE_PFC_DEADLOCK_EVENT_TYPE_DETECTED 

PFC deadlock detected

SAI_QUEUE_PFC_DEADLOCK_EVENT_TYPE_RECOVERED 

PFC deadlock recovery ended

Definition at line 404 of file saiqueue.h.

◆ _sai_queue_stat_t

Enum defining statistics for Queue.

Enumerator
SAI_QUEUE_STAT_PACKETS 

Get/set tx packets count [uint64_t]

SAI_QUEUE_STAT_BYTES 

Get/set tx bytes count [uint64_t]

SAI_QUEUE_STAT_DROPPED_PACKETS 

Get/set dropped packets count [uint64_t]

SAI_QUEUE_STAT_DROPPED_BYTES 

Get/set dropped bytes count [uint64_t]

SAI_QUEUE_STAT_GREEN_PACKETS 

Get/set green color tx packets count [uint64_t]

SAI_QUEUE_STAT_GREEN_BYTES 

Get/set green color tx bytes count [uint64_t]

SAI_QUEUE_STAT_GREEN_DROPPED_PACKETS 

Get/set green color dropped packets count [uint64_t]

SAI_QUEUE_STAT_GREEN_DROPPED_BYTES 

Get/set green color dropped packets count [uint64_t]

SAI_QUEUE_STAT_YELLOW_PACKETS 

Get/set yellow color tx packets count [uint64_t]

SAI_QUEUE_STAT_YELLOW_BYTES 

Get/set yellow color tx bytes count [uint64_t]

SAI_QUEUE_STAT_YELLOW_DROPPED_PACKETS 

Get/set yellow color drooped packets count [uint64_t]

SAI_QUEUE_STAT_YELLOW_DROPPED_BYTES 

Get/set yellow color dropped bytes count [uint64_t]

SAI_QUEUE_STAT_RED_PACKETS 

Get/set red color tx packets count [uint64_t]

SAI_QUEUE_STAT_RED_BYTES 

Get/set red color tx bytes count [uint64_t]

SAI_QUEUE_STAT_RED_DROPPED_PACKETS 

Get/set red color dropped packets count [uint64_t]

SAI_QUEUE_STAT_RED_DROPPED_BYTES 

Get/set red color drooped bytes count [uint64_t]

SAI_QUEUE_STAT_GREEN_WRED_DROPPED_PACKETS 

Get/set WRED green color dropped packets count [uint64_t]

SAI_QUEUE_STAT_GREEN_WRED_DROPPED_BYTES 

Get/set WRED green color dropped bytes count [uint64_t]

SAI_QUEUE_STAT_YELLOW_WRED_DROPPED_PACKETS 

Get/set WRED yellow color dropped packets count [uint64_t]

SAI_QUEUE_STAT_YELLOW_WRED_DROPPED_BYTES 

Get/set WRED yellow color dropped bytes count [uint64_t]

SAI_QUEUE_STAT_RED_WRED_DROPPED_PACKETS 

Get/set WRED red color dropped packets count [uint64_t]

SAI_QUEUE_STAT_RED_WRED_DROPPED_BYTES 

Get/set WRED red color dropped bytes count [uint64_t]

SAI_QUEUE_STAT_WRED_DROPPED_PACKETS 

Get/set WRED dropped packets count [uint64_t]

SAI_QUEUE_STAT_WRED_DROPPED_BYTES 

Get/set WRED red dropped bytes count [uint64_t]

SAI_QUEUE_STAT_CURR_OCCUPANCY_BYTES 

Get current queue occupancy in bytes [uint64_t]

SAI_QUEUE_STAT_WATERMARK_BYTES 

Get watermark queue occupancy in bytes [uint64_t]

SAI_QUEUE_STAT_SHARED_CURR_OCCUPANCY_BYTES 

Get current queue shared occupancy in bytes [uint64_t]

SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES 

Get watermark queue shared occupancy in bytes [uint64_t]

SAI_QUEUE_STAT_GREEN_WRED_ECN_MARKED_PACKETS 

Get/set WRED green color marked packets count [uint64_t]

SAI_QUEUE_STAT_GREEN_WRED_ECN_MARKED_BYTES 

Get/set WRED green color marked bytes count [uint64_t]

SAI_QUEUE_STAT_YELLOW_WRED_ECN_MARKED_PACKETS 

Get/set WRED yellow color marked packets count [uint64_t]

SAI_QUEUE_STAT_YELLOW_WRED_ECN_MARKED_BYTES 

Get/set WRED yellow color marked bytes count [uint64_t]

SAI_QUEUE_STAT_RED_WRED_ECN_MARKED_PACKETS 

Get/set WRED red color marked packets count [uint64_t]

SAI_QUEUE_STAT_RED_WRED_ECN_MARKED_BYTES 

Get/set WRED red color marked bytes count [uint64_t]

SAI_QUEUE_STAT_WRED_ECN_MARKED_PACKETS 

Get/set WRED marked packets count [uint64_t]

SAI_QUEUE_STAT_WRED_ECN_MARKED_BYTES 

Get/set WRED red marked bytes count [uint64_t]

SAI_QUEUE_STAT_CURR_OCCUPANCY_LEVEL 

Get current queue occupancy percentage [uint64_t]

SAI_QUEUE_STAT_WATERMARK_LEVEL 

Get watermark queue occupancy percentage [uint64_t]

SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS 

Get packets deleted when the credit watch dog expires for VOQ System [uint64_t]

SAI_QUEUE_STAT_CUSTOM_RANGE_BASE 

Custom range base value

Definition at line 277 of file saiqueue.h.

◆ _sai_queue_type_t

Enum defining Queue types.

Enumerator
SAI_QUEUE_TYPE_ALL 

H/w Queue for all types of traffic

SAI_QUEUE_TYPE_UNICAST 

H/w Egress Unicast Queue

SAI_QUEUE_TYPE_MULTICAST 

H/w Multicast Egress (Broadcast, Unknown unicast, Multicast) Queue

SAI_QUEUE_TYPE_UNICAST_VOQ 

H/w Virtual Output Queue (VOQ). This queue is ingress unicast queue

SAI_QUEUE_TYPE_MULTICAST_VOQ 

H/w Virtual Output Queue (VOQ). This queue is fabric multicast queue

SAI_QUEUE_TYPE_FABRIC_TX 

H/w Fabric Queue.

SAI_QUEUE_TYPE_CUSTOM_RANGE_BASE 

Custom range base value

Definition at line 39 of file saiqueue.h.