NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES_INIT function (netadapteroffload.h)

The NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES_INIT function initializes a NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES structure.

Syntax

void NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES_INIT(
  [_Out_] NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES *RscCapabilities,
  [_In_]  NET_ADAPTER_OFFLOAD_LAYER3_FLAGS     Layer3Flags,
  [_In_]  NET_ADAPTER_OFFLOAD_LAYER4_FLAGS     Layer4Flags,
  [_In_]  PFN_NET_ADAPTER_OFFLOAD_SET_RSC      EvtAdapterOffloadSetRsc
);

Parameters

[_Out_] RscCapabilities

A pointer to a driver-allocated NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES structure.

[_In_] Layer3Flags

Flags specifying the layer 3 protocols that the NIC can successfully perform RSC on.

[_In_] Layer4Flags

Flags specifying the layer 4 protocols that the NIC can successfully perform RSC on.

[_In_] EvtAdapterOffloadSetRsc

A pointer to the client driver's implementation of the EVT_NET_ADAPTER_OFFLOAD_SET_RSC callback function.

Return value

None

Remarks

The client driver calls NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES_INIT to initialize a NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES structure. The driver passes the initialized NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES structure as a parameter to the NetAdapterOffloadSetRscCapabilities function to register it.

To see an example of how a client driver might set up its RSC hardware offload capabilities, see Receive Segment Coalescing offload.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Target Platform Universal
Minimum UMDF version 2.33
Header netadapteroffload.h (include netadaptercx.h)
IRQL Any level as long as target memory is resident

See also

Receive Segment Coalescing offload

NET_ADAPTER_OFFLOAD_RSC_CAPABILITIES

NetAdapterOffloadSetRscCapabilities