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 |
Header | netadapter.h (include netadaptercx.h) |
IRQL | PASSIVE_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for