NetAdapterOffloadSetGsoCapabilities function (netadapter.h)

The NetAdapterOffloadSetGsoCapabilities function sets the hardware Generic Segmentation Offload (GSO) capabilities of a network adapter.

Syntax

void NetAdapterOffloadSetGsoCapabilities(
  [_In_] NETADAPTER                           Adapter,
  [_In_] NET_ADAPTER_OFFLOAD_GSO_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_GSO_CAPABILITIES structure that describes the hardware's GSO 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

Generic Segmentation Offload

NetAdapterCreate

NET_ADAPTER_OFFLOAD_GSO_CAPABILITIES

NET_ADAPTER_OFFLOAD_GSO_CAPABILITIES_INIT

EVT_NET_ADAPTER_OFFLOAD_SET_GSO

NetAdapterStart