NET_PACKET_QUEUE_CONFIG structure (netpacketqueue.h)

The NET_PACKET_QUEUE_CONFIG structure describes the configuration options for a NetAdapterCx client driver's packet queue.

Syntax

typedef struct _NET_PACKET_QUEUE_CONFIG {
  ULONG                                     Size;
  PFN_PACKET_QUEUE_START                    EvtStart;
  PFN_PACKET_QUEUE_STOP                     EvtStop;
  PFN_PACKET_QUEUE_ADVANCE                  EvtAdvance;
  PFN_PACKET_QUEUE_SET_NOTIFICATION_ENABLED EvtSetNotificationEnabled;
  PFN_PACKET_QUEUE_CANCEL                   EvtCancel;
  NETEXECUTIONCONTEXT                       ExecutionContext;
} NET_PACKET_QUEUE_CONFIG;

Members

Size

The size of this structure, in bytes.

EvtStart

A pointer to the client driver's EVT_PACKET_QUEUE_START event callback function for this packet queue. This callback function is required.

EvtStop

A pointer to the client driver's EVT_PACKET_QUEUE_STOP event callback function for this packet queue. This callback function is required.

EvtAdvance

A pointer to the client driver's EVT_PACKET_QUEUE_ADVANCE event callback function for this packet queue. This callback function is required.

EvtSetNotificationEnabled

A pointer to the client driver's EVT_PACKET_QUEUE_SET_NOTIFICATION_ENABLED event callback function for this packet queue. This callback function is required.

EvtCancel

A pointer to the client driver's EVT_PACKET_QUEUE_CANCEL event callback function for this packet queue. This callback function is required.

ExecutionContext

A NETEXECUTIONCONTEXT object.

Remarks

Call NET_PACKET_QUEUE_CONFIG_INIT to initialize this structure.

The NET_PACKET_QUEUE_CONFIG structure is an input parameter to NetTxQueueCreate and NetRxQueueCreate. The client must use NET_PACKET_QUEUE_CONFIG_INIT to initialize this structure before calling NetTx(Rx)QueueCreate.

Requirements

Requirement Value
Minimum KMDF version 1.27
Minimum UMDF version 2.33
Header netpacketqueue.h (include netadaptercx.h)

See also

NET_PACKET_QUEUE_CONFIG_INIT

NetTxQueueCreate

NetRxQueueCreate