NDIS_QOS_SQ_STATS structure (ntddndis.h)

The NDIS_QOS_SQ_STATS structure is used by OID_QOS_OFFLOAD_SQ_STATS to query the stats of an NDIS Quality of Service (QoS) Scheduler Queue (SQ).

Syntax

typedef struct _NDIS_QOS_SQ_STATS {
  NDIS_OBJECT_HEADER Header;
  ULONG              Flags;
  NDIS_QOS_SQ_ID     SqId;
  NDIS_QOS_SQ_TYPE   SqType;
  UINT64             BytesTransmitted[NDIS_QOS_MAXIMUM_TRAFFIC_CLASSES];
  UINT64             PktsTransmitted[NDIS_QOS_MAXIMUM_TRAFFIC_CLASSES];
} NDIS_QOS_SQ_STATS, *PNDIS_QOS_SQ_STATS;

Members

Header

The type, revision, and size of the NDIS_QOS_SQ_STATS structure. This member is formatted as an NDIS_OBJECT_HEADER structure.

The miniport driver must set the Type member of Header to NDIS_OBJECT_TYPE_DEFAULT, the Revision member to NDIS_QOS_SQ_STATS_REVISION_1, and the Size member to NDIS_SIZEOF_QOS_SQ_STATS_REVISION_1.

Flags

Not used in NDIS_QOS_SQ_STATS_REVISION_1. The caller sets this field to zero.

SqId

An NDIS_QOS_SQ_ID containing the SQ ID of the SQ. NDIS assigns this ID.

SqType

An NDIS_QOS_SQ_TYPE that contains the type of this SQ. This can be NdisQSQosSqSQTypeStandard from the enum definition of NDIS_QOS_SQ_TYPE.

BytesTransmitted[NDIS_QOS_MAXIMUM_TRAFFIC_CLASSES]

An array of UINT64 elements, one for each traffic class (TC). Each element specifies the total number of bytes on that TC for this SQ that have been successfully transmitted.

PktsTransmitted[NDIS_QOS_MAXIMUM_TRAFFIC_CLASSES]

An array of UINT64 elements, one for each traffic class. Each element specifies the total number of packets on that TC for this SQ that have been successfully transmitted.

Remarks

If the query OID_QOS_OFFLOAD_SQ_STATS OID contains a valid vPortID, then the returned stats are specific to the vPort specified on this SQ.

If the query OID does not contain a valid vPortID, then the returned stats specify the total stats across all vPorts associated with the SQ.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.85 and later.
Minimum supported server Windows Server 2022
Header ntddndis.h (include ndis.h)

See also

OID_QOS_OFFLOAD_SQ_STATS

NDIS_QOS_SQ_TYPE

NDIS_QOS_SQ_ARRAY

NDIS_OBJECT_HEADER