NetAdapterSetLinkLayerMtuSize 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.

Sets the link layer maximum transfer unit size of the adapter.

Syntax

void NetAdapterSetLinkLayerMtuSize(
  NETADAPTER Adapter,
  ULONG      MtuSize
);

Parameters

Adapter

The network adapter object that the client created in a prior call to NetAdapterCreate.

MtuSize

The new size of the adapter's MTU, in bytes.

Return Value

This method does not return a value.

Remarks

The client driver first sets MTU size by calling NetAdapterSetLinkLayerMtuSize when starting a net adapter, before calling NetAdapterStart.

The client driver can change the MTU size after NetAdapterStart returns by calling this method again. Doing so causes all of the adapter's transmit (Tx) and receive (Rx) queues to be recreated.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.21
Header netadapter.h (include netadaptercx.h)
IRQL PASSIVE_LEVEL

See Also

NetAdapterSetLinkLayerCapabilities