NET_ADAPTER_OFFLOAD_LSO_CAPABILITIES_INIT function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

The NET_ADAPTER_OFFLOAD_LSO_CAPABILITIES_INIT method initializes a NET_ADAPTER_OFFLOAD_LSO_CAPABILITIES structure.

Syntax

void NET_ADAPTER_OFFLOAD_LSO_CAPABILITIES_INIT(
  NET_ADAPTER_OFFLOAD_LSO_CAPABILITIES *LsoCapabilities,
  BOOLEAN                              IPv4,
  BOOLEAN                              IPv6,
  SIZE_T                               MaximumOffloadSize,
  SIZE_T                               MinimumSegmentCount,
  PFN_NET_ADAPTER_OFFLOAD_SET_LSO      EvtAdapterOffloadSetLso
);

Parameters

LsoCapabilities

A pointer to a driver-allocated NET_ADAPTER_OFFLOAD_LSO_CAPABILITIES structure.

IPv4

A flag specifying whether the NIC can segment a large TCP packet on IPv4.

IPv6

A flag specifying whether the NIC can segment a large TCP packet on IPv6.

MaximumOffloadSize

The maximum bytes of user data that the transport can pass to the NIC driver in a single packet.

MinimumSegmentCount

The minimum number of segments by which a large TCP packet must be divisible before the transport can offload it to the hardware for segmentation.

EvtAdapterOffloadSetLso

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

Return Value

This method does not return a value.

Remarks

The NET_ADAPTER_OFFLOAD_LSO_CAPABILITIES structure initialized by this method is passed as a parameter to the NetAdapterOffloadSetLsoCapabilities method.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.29
Header netadapter.h
Library netadaptercxstub.lib

See Also

NetAdapterCx hardware offloads

NET_ADAPTER_OFFLOAD_LSO_CAPABILITIES

NetAdapterOffloadSetLsoCapabilities