NetAdapterOffloadSetChecksumCapabilities function (netadapter.h)

Note

The NetAdapterOffloadSetChecksumCapabilities function is deprecated in NetAdapterCx 2.1 and later. For more information on current checksum offload functions, see Checksum offload.

The NetAdapterOffloadSetChecksumCapabilities function sets the hardware checksum offload capabilities of a network adapter.

Syntax

void NetAdapterOffloadSetChecksumCapabilities(
  [_In_] NETADAPTER                                Adapter,
  [_In_] NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES *HardwareCapabilities
);

Parameters

[_In_] Adapter

A handle to a NETADAPTER object that the client driver obtained from a previous call to NetAdapterCreate.

[_In_] HardwareCapabilities

A pointer to a driver-allocated and initialized NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES structure that describes the hardware's checksum offload capabilities.

Return value

None

Remarks

Client drivers typically call this function from within their EvtDevicePrepareHardware callback, but must call this function before calling NetAdapterStart.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.29
Minimum UMDF version 2.33
Header netadapter.h (include netadaptercx.h)
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

See also

NetAdapterCx hardware offloads

NetAdapterCreate

NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES

NET_ADAPTER_OFFLOAD_CHECKSUM_CAPABILITIES_INIT

EVT_NET_ADAPTER_OFFLOAD_SET_CHECKSUM

NetAdapterStart