注册
解决 hyper-v r2 虚拟网卡影响网速变慢问题
Using Registry Values to Enable and Disable Task Offloading
When you debug a driver's task offload functionality, you might find it useful to enable or disable task offload services with a registry key setting. There are standardized keywords that you can define in INF files and in the registry. For more information about standardized keywords, see Standardized Installation Keywords for Ethernet Devices.
Task offload keywords belong to one of two groups: granular keywords or grouped keywords. Granular keywords provide keywords per offload capability--Transport Layer differentiation, IP protocol differentiation. Grouped keywords provide combined
keywords capability at the transport layer.
The granular keywords are defined as follows:
*IPChecksumOffloadIPv4
Describes whether the device enabled or disabled the calculation of IPv4
checksums.
*TCPChecksumOffloadIPv4
Describes whether the device enabled or disabled the calculation of TCP
Checksum over IPv4 packets.
*TCPChecksumOffloadIPv6
Describes whether the device enabled or disabled the calculation of TCP
checksum over IPv6 packets.
*UDPChecksumOffloadIPv4
Describes whether the device enabled or disabled the calculation of UDP
Checksum over IPv4 packets.
*UDPChecksumOffloadIPv6
Describes whether the device enabled or disabled the calculation of UDP
Checksum over IPv6 packets.
*LsoV1IPv4
Describes whether the device enabled or disabled the segmentation of large TCP
packets over IPv4 for large send offload version 1 (LSOv1).
*LsoV2IPv4
Describes whether the device enabled or disabled the segmentation of large TCP
packets over IPv4 for large send offload version 2 (LSOv2).
*LsoV2IPv6
Describes whether the device enabled or disabled the segmentation of large TCP
packets over IPv6 for large send offload version 2 (LSOv2).
*IPsecOffloadV1IPv4
Describes whether the device enabled or disabled the calculation of IPsec
headers over IPv4.
*IPsecOffloadV2
Describes whether the device enabled or disabled IPsec offload version 2
(IPsecOV2). IPsecOV2 provides support for additional crypto-algorithms, IPv6,
and co-existence with large send offload version 2 (LSOv2).
*IPsecOffloadV2IPv4
Describes whether the device enabled or disabled IPsecOV2 for IPv4 only.
The following table describes the granular keywords that you can use to configure offload services.
SubkeyName ParamDesc Value EnumDesc
*IPChecksumOffloadIPv4 IPv4 Checksum 0 Disabled
Offload
1 Tx Enabled
2 Rx Enabled
3 Rx & Tx Enabled
(Default)
*TCPChecksumOffloadIPv4 TCP Checksum Offload 0 Disabled
(IPv4)
1 Tx Enabled
2 Rx Enabled
3 Rx & Tx Enabled
(Default) *TCPChecksumOffloadIPv6 TCP Checksum Offload 0 Disabled
(IPv6)
1 Tx Enabled
2 Rx Enabled
3 Rx & Tx Enabled
(Default) *UDPChecksumOffloadIPv4 UDP Checksum Offload 0 Disabled
(IPv4)
1 Tx Enabled
2 Rx Enabled
3 Rx & Tx Enabled
(Default) *UDPChecksumOffloadIPv6 UDP Checksum Offload 0 Disabled
(IPv6)
1 Tx Enabled
2 Rx Enabled
3 Rx & Tx Enabled
(Default) *LsoV1IPv4 Large Send Offload 0 Disabled
Version 1 (IPv4)
1 Enabled
(Default) *LsoV2IPv4 Large Send Offload 0 Disabled
Version 2 (IPv4)
1 Enabled
(Default) *LsoV2IPv6 Large Send Offload 0 Disabled
Version 2 (IPv6)
1 Enabled
(Default) *IPsecOffloadV1IPv4 IPsec Offload Version 0 Disabled
1 (IPv4)
1 Auth Header
Enabled
2 ESP Enabled
3 Auth Header &
(Default) ESP Enabled *IPsecOffloadV2 IPsec Offload 0 Disabled
1 Auth Header
Enabled
2 ESP Enabled
3 Auth Header &
(Default) ESP Enabled *IPsecOffloadV2IPv4 IPsec Offload (IPv4 0 Disabled
only)
1 Auth Header
Enabled
2 ESP Enabled
3 Auth Header &
(Default) ESP Enabled
Note The INF file can support granular keywords that are displayed in the Advanced Property page of the UI. The miniport driver must read all of the granular settings from the registry at initialization, including settings that are not displayed, to register NDIS offload capabilities.
The grouped keywords are defined as follows:
*TCPUDPChecksumOffloadIPv4
Describes whether the device enabled or disabled the calculation of TCP or UDP
checksum over IPv4.
*TCPUDPChecksumOffloadIPv6
Describes whether the device enabled or disabled the calculation of TCP or UDP
checksum over IPv6.
The following table describes the grouped keywords that you can use to configure offload services.
SubkeyName ParamDesc Value EnumDesc
*TCPUDPChecksumOffloadIPv4 TCP/UDP Checksum 0 Disabled
Offload (IPv4)
1 Tx Enabled
2 Rx Enabled
3 Tx & Rx
(Default) Enabled
*TCPUDPChecksumOffloadIPv6 TCP/UDP Checksum 0 Disabled
Offload (IPv6)
1 Tx Enabled
2 Rx Enabled
3 Tx & Rx
(Default) Enabled
There are restrictions on the combinations of offloads that can be enabled. For example, if a miniport adapter supports LSOV1 or LSOV2, the miniport adapter also calculates the IP and TCP checksums. For more information about valid combinations of offloads, see Combining Types of Task Offloads.
If task offload services are disabled with a registry key setting, protocol drivers must not issue the OID_OFFLOAD_ENCAPSULATION object identifier (OID).
You can use the following registry values to enable or disable task offloading for the TCP/IP protocol:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\TCPIP\Parame
ters\DisableTaskOffload
Setting this value to one disables all of the task offloads from the TCP/IP
transport. Setting this value to zero enables all of the task offloads.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Ipsec\Enabled
Offload
Setting this value to zero disables Internet protocol security (IPsec) offloads
from the TCP/IP transport. The offloading of TCP/IP checksum tasks, large send
offload version 1 (LSOV1), and large send offload version 2 (LSOV2) are not
affected. Setting this value to one enables IPsec offloads.
Send comments about this topic to Microsoft
Build date: 11/2/2010
使用注册表值,以启用和禁用任务卸载 当你调试驱动程序的任务卸载功能,您可能会发现它有用启用或禁用注册表项设置与任务卸载服务。 有
化的关键字,您可以定义在INF文件和注册表。 欲了解更多信息标准化的关键字,看到的以太网设备标准化安装关键词 。
任务卸载关键字属于组有两种:或分组关键字。 颗粒颗粒关键字提供关键字-传输层,每卸载功能分化,IP
的分化。关键词关键词分组层提供联合运输能力在关键字。 粒状关键字定义如下:
* IPChecksumOffloadIPv4
描述是否启用或禁用该设备的IPv4校验和计算。
* TCPChecksumOffloadIPv4
描述是否启用或禁用该设备的TCP IPv4的数据包校验和计算。
* TCPChecksumOffloadIPv6
描述是否启用或禁用该设备的TCP数据包校验和IPv6的计算。
* UDPChecksumOffloadIPv4
描述是否启用或禁用该设备UDP数据包校验和IPv4的计算。
* UDPChecksumOffloadIPv6
包描述是否启用或禁用该设备IPv6的UDP的校验和计算。
* LsoV1IPv4
)描述是否在设备上启用或发送LSOv1卸载版本1(禁用TCP数据包分割大在IPv4大。
* LsoV2IPv4
)描述是否在设备上启用或发送LSOv2卸载版本2(已禁用的分割过大TCP数据包的IPv4
大。
* LsoV2IPv6
)描述是否启用或禁用该设备在分割的大型TCP数据包的IPv6大型发送卸载版本2
(LSOv2。
* IPsecOffloadV1IPv4
IPv4的描述是否启用或禁用该设备在计算的IPsec头。
* IPsecOffloadV2
描述是否启用或禁用该设备IPsec卸载版本2(IPsecOV2)。 IPsecOV2提供支持额外
加密算法,IPv6的,2(LSOv2)和共存与大型发送卸载版本。
* IPsecOffloadV2IPv4
设备是否启用或停用仅IPv4 IPsecOV2介绍。
下表描述了颗粒关键字,您可以用它来配置卸载服务。
价值 SubkeyName ParamDesc EnumDesc
IPv4的校验和卸载 残疾人士 * IPChecksumOffloadIPv4 0
一 发送启用
接收启用 2
3(默接收和发送启用
认)
TCP校验和卸载(IPv4)残疾人士 * 0
的 TCPChecksumOffloadIPv4
一 发送启用
接收启用 2
3(默接收和发送启用
认)
TCP校验和卸载(IPv6)残疾人士 * 0
的 TCPChecksumOffloadIPv6
一 发送启用
接收启用 2
3(默接收和发送启用
认)
UDP校验和卸载(IPv4)残疾人士 * 0 的 UDPChecksumOffloadIPv4
一 发送启用
接收启用 2
3(默接收和发送启用
认)
UDP校验和卸载(IPv6)残疾人士 * 0 的 UDPChecksumOffloadIPv6
一 发送启用
接收启用 2
3(默接收和发送启用
认) 大量传送卸载版本1残疾人士 * LsoV1IPv4 0 (IPv4)的
1(默启用
认) 大量传送卸载第2版残疾人士 * LsoV2IPv4 0 (IPv4)的
1(默启用
认) 大量传送卸载第2版残疾人士 * LsoV2IPv6 0 (IPv6)的
1(默启用
认)
IPSec卸载版本1(IPv4)残疾人士 * IPsecOffloadV1IPv4 0
的
一 认证头启用
ESP的启用 2
3(默页眉和ESP的权威性
认) 启用
IPSec卸载 残疾人士 * IPsecOffloadV2 0
一 认证头启用
ESP的启用 2
3(默页眉和ESP的权威性
认) 启用
IPSec卸载(仅IPv4) 残疾人士 * IPsecOffloadV2IPv4 0
一 认证头启用
ESP的启用 2
3(默页眉和ESP的权威性
认) 启用
注意:INF文件可以支持用户界面颗粒的关键字在页面所显示的高级属性。 微型端口驱动程序必须在注册表中读取初始化设置在所有的颗粒,包括显示设置都没有,登记的NDIS卸载功能。
分组的关键词定义如下:
* TCPUDPChecksumOffloadIPv4
描述是否启用或禁用该设备的IPv4的TCP或UDP校验和计算。
* TCPUDPChecksumOffloadIPv6
描述是否启用或禁用该设备对IPv6的TCP或UDP校验和计算。
下表描述了分组的关键字,您可以用它来配置卸载服务。
价值 SubkeyName ParamDesc EnumDesc
TCP / UDP校验和卸载残疾人士 * 0
(IPv4)的 TCPUDPChecksumOffloadIPv4
一 发送启用
接收启用 2
3(默发送和接收启
认) 用
TCP / UDP校验和卸载残疾人士 * 0
(IPv6)的 TCPUDPChecksumOffloadIPv6
一 发送启用
接收启用 2
3(默发送和接收启
认) 用 有关于卸载了可以启用组合的限制。 例如,如果一个微型端口适配器支持LSOV1或LSOV2,微型端口适配器还计算IP和TCP校验和。 欲了解更多信息,卸载有关有效的组合,看到结合卸载任务类型 。
如果任务卸载禁用服务设置一个注册表项,协议驱动程序必须不签发
OID_OFFLOAD_ENCAPSULATION对象标识符(OID)。 您可以使用下面的注册表值,以启用或/ IP协议禁用任务卸载的TCP:
HKEY_LOCAL_MACHINE \系统\ CurrentControlSet \服务\的TCPIP \参数\ DisableTaskOffload
将此值设置为禁用一个从TCP / IP传输任务卸载所有。 将该值设置为零以使卸载所有的任
务。
HKEY_LOCAL_MACHINE \系统\ CurrentControlSet \服务\的IPsec \ EnabledOffload
将此值设置为零禁用Internet协议安全(IPsec)运输卸载从TCP / IP协议。 这些任务卸
载的TCP / IP校验和,大派卸载版本1(LSOV1)和Large Send Offload版本2(LSOV2)
不受影响。 设置此值后使IPsec的卸载。
有关此主题的意见发送给Microsoft
创建日期:2010年11月2日