Bewerken

Delen via


NetAdapterOffloadSetTxChecksumCapabilities function (netadapter.h)

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

Syntax

void NetAdapterOffloadSetTxChecksumCapabilities(
  [_In_] NETADAPTER                                         Adapter,
  [_In_] const NET_ADAPTER_OFFLOAD_TX_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_TX_CHECKSUM_CAPABILITIES structure that describes the hardware's Tx 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
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
IRQL PASSIVE_LEVEL

See also

Checksum Offload

NetAdapterCreate

NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES

NET_ADAPTER_OFFLOAD_TX_CHECKSUM_CAPABILITIES_INIT

EVT_NET_ADAPTER_OFFLOAD_SET_TX_CHECKSUM

NetAdapterStart