NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES_INIT function (netadapter.h)

The NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES_INIT function initializes a NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES structure.

Syntax

void NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES_INIT(
  [_Out_] NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES *Capabilities,
  [_In_]  NET_ADAPTER_OFFLOAD_LAYER3_FLAGS             Layer3Flags,
  [_In_]  PFN_NET_ADAPTER_OFFLOAD_SET_TX_CHECKSUM      EvtAdapterOffloadSetTxChecksum
);

Parameters

[_Out_] Capabilities

A pointer to a driver-allocated NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES structure.

[_In_] Layer3Flags

Flags specifying the layer 3 protocol variations that the NIC can successfully perform Tx checksum on.

[_In_] EvtAdapterOffloadSetTxChecksum

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

Return value

None

Remarks

The client driver calls NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES_INIT to initialize a NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES structure. The driver passes the initialized NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES structure as a parameter to the NetAdapterOffloadSetTxChecksumCapabilities function to register it.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Target Platform Universal
Minimum KMDF version 1.29
Minimum UMDF version 2.33
Header netadapter.h (include netadaptercx.h)
Library netadaptercxstub.lib

See also

Checksum Offload

NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES

NetAdapterOffloadSetTxChecksumCapabilities

EVT_NET_ADAPTER_OFFLOAD_SET_TX_CHECKSUM