UID | title | description | tech.root | ms.date | keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.lib | req.dll | req.irql | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | targetos | f1_keywords | topic_type | api_type | api_location | api_name | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:netreceivescaling.EVT_NET_ADAPTER_RECEIVE_SCALING_DISABLE |
EVT_NET_ADAPTER_RECEIVE_SCALING_DISABLE (netreceivescaling.h) |
The EVT_NET_ADAPTER_RECEIVE_SCALING_DISABLE callback function disables receive side scaling (RSS) for a network interface controller (NIC). |
netvista |
04/01/2022 |
|
netreceivescaling.h |
netadaptercx.h |
Universal |
1.25 |
PASSIVE_LEVEL |
Windows |
|
|
|
|
|
The EvtNetAdapterReceiveScalingDisable callback function is implemented by the client driver to disable receive side scaling (RSS) for a network interface controller (NIC).
The NETADAPTER object the client driver obtained in a previous call to NetAdapterCreate.
//Declaration
EVT_NET_ADAPTER_RECEIVE_SCALING_DISABLE EvtNetAdapterReceiveScalingDisable;
// Definition
VOID EvtNetAdapterReceiveScalingDisable
(
_In_ NETADAPTER Adapter
)
{...}
typedef EVT_NET_ADAPTER_RECEIVE_SCALING_DISABLE *PFN_NET_ADAPTER_RECEIVE_SCALING_DISABLE;
Register your implementation of this callback function by setting the appropriate member of the NET_ADAPTER_RECEIVE_SCALING_CAPABILITIES structure and then calling NetAdapterSetReceiveScalingCapabilities.Client drivers typically call NetAdapterSetReceiveScalingCapabilities when starting a net adapter, before calling NetAdapterStart.
In this callback, client drivers disable RSS on the NIC.
Important
Client drivers should not clear or reset their indirection table from their EvtNetAdapterReceiveScalingDisable callback. The framework will set the driver's initial indirection table state.
VOID
MyEvtNetAdapterReceiveScalingDisable(
_In_ NETADAPTER Adapter
)
{
if(!MyHardwareRssSetControl(MY_RSS_MULTI_CPU_DISABLE))
{
WdfDeviceSetFailed(Adapter->WdfDevice, WdfDeviceFailedAttemptRestart);
}
}