NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES_INIT function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

The NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES_INIT method initializes a NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES structure.

Syntax

void NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES_INIT(
  NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES                *Capabilities,
  SIZE_T                                                  NumberOfQueues,
  NET_ADAPTER_RECEIVE_SCALING_UNHASHED_TARGET_TYPE        UnhashedTargetType,
  NET_ADAPTER_RECEIVE_SCALING_HASH_TYPE                   HashTypes,
  NET_ADAPTER_RECEIVE_SCALING_PROTOCOL_TYPE               ProtocolTypes,
  PFN_NET_ADAPTER_RECEIVE_SCALING_ENABLE                  Enable,
  PFN_NET_ADAPTER_RECEIVE_SCALING_DISABLE                 Disable,
  PFN_NET_ADAPTER_RECEIVE_SCALING_SET_HASH_SECRET_KEY     SetHashSecretKey,
  PFN_NET_ADAPTER_RECEIVE_SCALING_SET_INDIRECTION_ENTRIES SetIndirectionEntries
);

Parameters

Capabilities

A pointer to the driver-allocated NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES structure.

NumberOfQueues

The number of hardware receive queues. This member must be a power of 2.

UnhashedTargetType

A NET_ADAPTER_RECEIVE_SCALING_UNHASHED_TARGET_TYPE value that indicates the type of handling for unhashed frames. If this member is set to NetAdapterReceiveScalingUnhashedTargetTypeUnspecified, then UnhashedTarget is ignored.

HashTypes

A NET_ADAPTER_RECEIVE_SCALING_HASH_TYPE value that indicates supported hash function types for calculating hash values.

ProtocolTypes

A NET_ADAPTER_RECEIVE_SCALING_PROTOCOL_TYPE value that indicates the supported protocol types for calculating hash values.

Enable

A pointer to the client driver's EvtNetAdapterReceiveScalingEnable event callback function.

Disable

A pointer to the client driver's EvtNetAdapterReceiveScalingDisable event callback function.

SetHashSecretKey

A pointer to the client driver's EvtNetAdapterReceiveScalingSetHashSecretKey event callback function.

SetIndirectionEntries

A pointer to the client driver's EvtNetAdapterReceiveScalingSetIndirectionEntries event callback function.

Return Value

This method does not return a value.

Remarks

The NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES structure is an input parameter to NetAdapterSetReceiveScalingCapabilities. The client must use NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES_INIT to initialize this structure before calling NetAdapterSetReceiveScalingCapabilities.

Requirements

   
Header netreceivescaling.h

See Also

NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES

NetAdapterSetReceiveScalingCapabilities

NetAdapterCx Receive Side Scaling