NetAdapterSetLinkLayerMtuSize function

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

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