NetAdapterSetLinkLayerMtuSize function (netadapter.h)

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

Syntax

void NetAdapterSetLinkLayerMtuSize(
  [_In_] NETADAPTER Adapter,
  [_In_] ULONG      MtuSize
);

Parameters

[_In_] Adapter

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

[_In_] MtuSize

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

Return value

None

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 function again. Doing so causes all of the adapter's transmit (Tx) and receive (Rx) queues to be recreated.

Requirements

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

See also

NetAdapterSetLinkLayerCapabilities