<commit_before>#if defined(Win8) || defined(win8) || defined(WIN8)
#define TARGETOS 62
#elif defined(Win7) || defined(win7) || defined(WIN7)
#define TARGETOS 61
#elif defined(Vista) || defined(vista) || defined(VISTA)
#define TARGETOS 60
#elif defined(XP) || defined(xp)
#define TARGETOS 51
#else
#define TARGETOS 50
#endif

#if TARGETOS >= 61 
#define _LsoV2IPv4
#define _LsoV2IPv6
#define _IPChecksumOffload
#define _UDPChecksumOffloadIPv4
#define _TCPChecksumOffloadIPv4
#define _UDPChecksumOffloadIPv6
#define _TCPChecksumOffloadIPv6
#endif

#if TARGETOS <= 51
#define DEFAULT_CONNECT_RATE	"1001"
#define DEFAULT_TX_CHECKSUM		"0" 
#define DEFAULT_RX_CHECKSUM		"0"
#elif TARGETOS < 62
#define DEFAULT_CONNECT_RATE	"10000"
#define DEFAULT_TX_CHECKSUM		"27"
#define DEFAULT_RX_CHECKSUM		"0"
#else
#define DEFAULT_CONNECT_RATE	"10000"
#define DEFAULT_TX_CHECKSUM		"31"
#define DEFAULT_RX_CHECKSUM		"31"
#endif


#if defined(INCLUDE_PARAMS)
HKR, Ndi\Params\ConnectRate,		ParamDesc,	0,			%ConnectRate%
HKR, Ndi\Params\ConnectRate,		Default,	0,			DEFAULT_CONNECT_RATE
HKR, Ndi\Params\ConnectRate,		type,		0,			"enum"
HKR, Ndi\Params\ConnectRate\enum,	"10",		0,			%10M%
HKR, Ndi\Params\ConnectRate\enum,	"100",		0,			%100M%
HKR, Ndi\Params\ConnectRate\enum,	"1001",		0,			%1G%
HKR, Ndi\Params\ConnectRate\enum,	"10000",	0,			%10G%

HKR, Ndi\Params\Priority,			ParamDesc,	0,			%Priority%
HKR, Ndi\Params\Priority,			Default,	0,			"1"
HKR, Ndi\Params\Priority,			type,		0,			"enum"
HKR, Ndi\Params\Priority\enum,		"1",		0,			%Enable%
HKR, Ndi\Params\Priority\enum,		"0",		0,			%Disable%

HKR, Ndi\Params\*PriorityVLANTag,			ParamDesc,	0,			%PriorityVlanTag%
HKR, Ndi\Params\*PriorityVLANTag,			Default,	0,			"3"
HKR, Ndi\Params\*PriorityVLANTag,			type,		0,			"enum"
HKR, Ndi\Params\*PriorityVLANTag\enum,		"3",		0,			%Priority_Vlan%
HKR, Ndi\Params\*PriorityVLANTag\enum,		"2",		0,			%VLan%
HKR, Ndi\Params\*PriorityVLANTag\enum,		"1",		0,			%PriorityOnly%
HKR, Ndi\Params\*PriorityVLANTag\enum,		"0",		0,			%Disable%

HKR, Ndi\Params\DoLog,				ParamDesc,	0,			%EnableLogging%
HKR, Ndi\Params\DoLog,				Default,	0,			"1"
HKR, Ndi\Params\DoLog,				type,		0,			"enum"
HKR, Ndi\Params\DoLog\enum,			"1",		0,			%Enable%
HKR, Ndi\Params\DoLog\enum,			"0",		0,			%Disable%

HKR, Ndi\params\DebugLevel,			ParamDesc,  0,          %DebugLevel%
HKR, Ndi\params\DebugLevel,			type,       0,          "int"
HKR, Ndi\params\DebugLevel,			default,    0,          "0"
HKR, Ndi\params\DebugLevel,			min,        0,          "0"
HKR, Ndi\params\DebugLevel,			max,        0,          "8"
HKR, Ndi\params\DebugLevel,			step,       0,          "1"

HKR, Ndi\params\LogStatistics,		ParamDesc,  0,          %LogStatistics%
HKR, Ndi\params\LogStatistics,		type,       0,          "int"
HKR, Ndi\params\LogStatistics,		default,    0,          "0"
HKR, Ndi\params\LogStatistics,		min,        0,          "0"
HKR, Ndi\params\LogStatistics,		max,        0,          "10000"
HKR, Ndi\params\LogStatistics,		step,       0,          "1"

HKR, Ndi\params\MTU,				ParamDesc,  0,          %MTU%
HKR, Ndi\params\MTU,				type,       0,          "long"
HKR, Ndi\params\MTU,				default,    0,          "1500"
HKR, Ndi\params\MTU,				min,        0,          "500"
HKR, Ndi\params\MTU,				max,        0,          "65500"
HKR, Ndi\params\MTU,				step,       0,          "1"

HKR, Ndi\params\TxCapacity,			ParamDesc,  0,          %TxCapacity%
HKR, Ndi\params\TxCapacity,			type,       0,          "enum"
HKR, Ndi\params\TxCapacity,			default,    0,          "1024"
HKR, Ndi\Params\TxCapacity\enum,	"16",		0,			%String_16%
HKR, Ndi\Params\TxCapacity\enum,	"32",		0,			%String_32%
HKR, Ndi\Params\TxCapacity\enum,	"64",		0,			%String_64%
HKR, Ndi\Params\TxCapacity\enum,	"128",		0,			%String_128%
HKR, Ndi\Params\TxCapacity\enum,	"256",		0,			%String_256%
HKR, Ndi\Params\TxCapacity\enum,	"512",		0,			%String_512%
HKR, Ndi\Params\TxCapacity\enum,	"1024",		0,			%String_1024%

HKR, Ndi\params\RxCapacity,			ParamDesc,  0,          %RxCapacity%
HKR, Ndi\params\RxCapacity,			type,       0,          "enum"
HKR, Ndi\params\RxCapacity,			default,    0,          "256"
HKR, Ndi\Params\RxCapacity\enum,	"16",		0,			%String_16%
HKR, Ndi\Params\RxCapacity\enum,	"32",		0,			%String_32%
HKR, Ndi\Params\RxCapacity\enum,	"64",		0,			%String_64%
HKR, Ndi\Params\RxCapacity\enum,	"128",		0,			%String_128%
HKR, Ndi\Params\RxCapacity\enum,	"256",		0,			%String_256%
HKR, Ndi\Params\RxCapacity\enum,	"512",		0,			%String_512%
HKR, Ndi\Params\RxCapacity\enum,	"1024",		0,			%String_1024%

HKR, Ndi\Params\MergeableBuf,		ParamDesc,	0,			%MergeableBuf%
HKR, Ndi\Params\MergeableBuf,		Default,	0,			"1"
HKR, Ndi\Params\MergeableBuf,		type,		0,			"enum"
HKR, Ndi\Params\MergeableBuf\enum,	"1",		0,			%Enable%
HKR, Ndi\Params\MergeableBuf\enum,	"0",		0,			%Disable%

HKR, Ndi\Params\PublishIndices,		ParamDesc,	0,			%PublishIndices%
HKR, Ndi\Params\PublishIndices,		Default,	0,			"1"
HKR, Ndi\Params\PublishIndices,		type,		0,			"enum"
HKR, Ndi\Params\PublishIndices\enum,	"1",		0,			%Enable%
HKR, Ndi\Params\PublishIndices\enum,	"0",		0,			%Disable%

HKR, Ndi\params\NetworkAddress,		ParamDesc,  0,          %NetworkAddress%
HKR, Ndi\params\NetworkAddress,		type,       0,          "edit"
HKR, Ndi\params\NetworkAddress,		Optional,   0,          "1"

HKR, Ndi\Params\Indirect,			ParamDesc,	0,			%Indirect%
HKR, Ndi\Params\Indirect,			Default,	0,			"0"
HKR, Ndi\Params\Indirect,			type,		0,			"enum"
HKR, Ndi\Params\Indirect\enum,		"0",		0,			%Disable%
HKR, Ndi\Params\Indirect\enum,		"1",		0,			%Enable%
HKR, Ndi\Params\Indirect\enum,		"2",		0,			%Enable*%

HKR, Ndi\Params\OffLoad.TxChecksum,	ParamDesc,	0,			%OffLoad.TxChecksum%
HKR, Ndi\Params\OffLoad.TxChecksum,	Default,	0,			DEFAULT_TX_CHECKSUM
HKR, Ndi\Params\OffLoad.TxChecksum,	type,		0,			"enum"
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"31",		0,	%All%
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"27",		0,	%TCPUDPAll%
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"3",		0,	%TCPUDPv4%
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"1",		0,	%TCPv4%
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"0",		0,	%Disable%

HKR, Ndi\Params\OffLoad.TxLSO,		ParamDesc,	0,			%OffLoad.TxLSO%
HKR, Ndi\Params\OffLoad.TxLSO,		Default,	0,			"2"
HKR, Ndi\Params\OffLoad.TxLSO,		type,		0,			"enum"
HKR, Ndi\Params\OffLoad.TxLSO\enum,	"2",		0,			%Maximal%
HKR, Ndi\Params\OffLoad.TxLSO\enum,	"1",		0,			%IPv4%
HKR, Ndi\Params\OffLoad.TxLSO\enum,	"0",		0,			%Disable%<commit_msg>[NetKVM] BZ:826596 PublishIndices feature is set to disabled by default on Windows XP and Windows 2003 until further investigation is made on QEMU side why it causes performance degradation with legacy PCI interrupts.<commit_after>#if defined(Win8) || defined(win8) || defined(WIN8)
#define TARGETOS 62
#elif defined(Win7) || defined(win7) || defined(WIN7)
#define TARGETOS 61
#elif defined(Vista) || defined(vista) || defined(VISTA)
#define TARGETOS 60
#elif defined(XP) || defined(xp)
#define TARGETOS 51
#else
#define TARGETOS 50
#endif

#if TARGETOS >= 61 
#define _LsoV2IPv4
#define _LsoV2IPv6
#define _IPChecksumOffload
#define _UDPChecksumOffloadIPv4
#define _TCPChecksumOffloadIPv4
#define _UDPChecksumOffloadIPv6
#define _TCPChecksumOffloadIPv6
#endif

#if TARGETOS <= 51
#define DEFAULT_CONNECT_RATE	"1001"
#define DEFAULT_TX_CHECKSUM		"0" 
#define DEFAULT_RX_CHECKSUM		"0"
#define DEFAULT_PUBLISHINDICES  "0"
#elif TARGETOS < 62
#define DEFAULT_CONNECT_RATE	"10000"
#define DEFAULT_TX_CHECKSUM		"27"
#define DEFAULT_RX_CHECKSUM		"0"
#define DEFAULT_PUBLISHINDICES  "1"
#else
#define DEFAULT_CONNECT_RATE	"10000"
#define DEFAULT_TX_CHECKSUM		"31"
#define DEFAULT_RX_CHECKSUM		"31"
#define DEFAULT_PUBLISHINDICES  "1"
#endif


#if defined(INCLUDE_PARAMS)
HKR, Ndi\Params\ConnectRate,		ParamDesc,	0,			%ConnectRate%
HKR, Ndi\Params\ConnectRate,		Default,	0,			DEFAULT_CONNECT_RATE
HKR, Ndi\Params\ConnectRate,		type,		0,			"enum"
HKR, Ndi\Params\ConnectRate\enum,	"10",		0,			%10M%
HKR, Ndi\Params\ConnectRate\enum,	"100",		0,			%100M%
HKR, Ndi\Params\ConnectRate\enum,	"1001",		0,			%1G%
HKR, Ndi\Params\ConnectRate\enum,	"10000",	0,			%10G%

HKR, Ndi\Params\Priority,			ParamDesc,	0,			%Priority%
HKR, Ndi\Params\Priority,			Default,	0,			"1"
HKR, Ndi\Params\Priority,			type,		0,			"enum"
HKR, Ndi\Params\Priority\enum,		"1",		0,			%Enable%
HKR, Ndi\Params\Priority\enum,		"0",		0,			%Disable%

HKR, Ndi\Params\*PriorityVLANTag,			ParamDesc,	0,			%PriorityVlanTag%
HKR, Ndi\Params\*PriorityVLANTag,			Default,	0,			"3"
HKR, Ndi\Params\*PriorityVLANTag,			type,		0,			"enum"
HKR, Ndi\Params\*PriorityVLANTag\enum,		"3",		0,			%Priority_Vlan%
HKR, Ndi\Params\*PriorityVLANTag\enum,		"2",		0,			%VLan%
HKR, Ndi\Params\*PriorityVLANTag\enum,		"1",		0,			%PriorityOnly%
HKR, Ndi\Params\*PriorityVLANTag\enum,		"0",		0,			%Disable%

HKR, Ndi\Params\DoLog,				ParamDesc,	0,			%EnableLogging%
HKR, Ndi\Params\DoLog,				Default,	0,			"1"
HKR, Ndi\Params\DoLog,				type,		0,			"enum"
HKR, Ndi\Params\DoLog\enum,			"1",		0,			%Enable%
HKR, Ndi\Params\DoLog\enum,			"0",		0,			%Disable%

HKR, Ndi\params\DebugLevel,			ParamDesc,  0,          %DebugLevel%
HKR, Ndi\params\DebugLevel,			type,       0,          "int"
HKR, Ndi\params\DebugLevel,			default,    0,          "0"
HKR, Ndi\params\DebugLevel,			min,        0,          "0"
HKR, Ndi\params\DebugLevel,			max,        0,          "8"
HKR, Ndi\params\DebugLevel,			step,       0,          "1"

HKR, Ndi\params\LogStatistics,		ParamDesc,  0,          %LogStatistics%
HKR, Ndi\params\LogStatistics,		type,       0,          "int"
HKR, Ndi\params\LogStatistics,		default,    0,          "0"
HKR, Ndi\params\LogStatistics,		min,        0,          "0"
HKR, Ndi\params\LogStatistics,		max,        0,          "10000"
HKR, Ndi\params\LogStatistics,		step,       0,          "1"

HKR, Ndi\params\MTU,				ParamDesc,  0,          %MTU%
HKR, Ndi\params\MTU,				type,       0,          "long"
HKR, Ndi\params\MTU,				default,    0,          "1500"
HKR, Ndi\params\MTU,				min,        0,          "500"
HKR, Ndi\params\MTU,				max,        0,          "65500"
HKR, Ndi\params\MTU,				step,       0,          "1"

HKR, Ndi\params\TxCapacity,			ParamDesc,  0,          %TxCapacity%
HKR, Ndi\params\TxCapacity,			type,       0,          "enum"
HKR, Ndi\params\TxCapacity,			default,    0,          "1024"
HKR, Ndi\Params\TxCapacity\enum,	"16",		0,			%String_16%
HKR, Ndi\Params\TxCapacity\enum,	"32",		0,			%String_32%
HKR, Ndi\Params\TxCapacity\enum,	"64",		0,			%String_64%
HKR, Ndi\Params\TxCapacity\enum,	"128",		0,			%String_128%
HKR, Ndi\Params\TxCapacity\enum,	"256",		0,			%String_256%
HKR, Ndi\Params\TxCapacity\enum,	"512",		0,			%String_512%
HKR, Ndi\Params\TxCapacity\enum,	"1024",		0,			%String_1024%

HKR, Ndi\params\RxCapacity,			ParamDesc,  0,          %RxCapacity%
HKR, Ndi\params\RxCapacity,			type,       0,          "enum"
HKR, Ndi\params\RxCapacity,			default,    0,          "256"
HKR, Ndi\Params\RxCapacity\enum,	"16",		0,			%String_16%
HKR, Ndi\Params\RxCapacity\enum,	"32",		0,			%String_32%
HKR, Ndi\Params\RxCapacity\enum,	"64",		0,			%String_64%
HKR, Ndi\Params\RxCapacity\enum,	"128",		0,			%String_128%
HKR, Ndi\Params\RxCapacity\enum,	"256",		0,			%String_256%
HKR, Ndi\Params\RxCapacity\enum,	"512",		0,			%String_512%
HKR, Ndi\Params\RxCapacity\enum,	"1024",		0,			%String_1024%

HKR, Ndi\Params\MergeableBuf,		ParamDesc,	0,			%MergeableBuf%
HKR, Ndi\Params\MergeableBuf,		Default,	0,			"1"
HKR, Ndi\Params\MergeableBuf,		type,		0,			"enum"
HKR, Ndi\Params\MergeableBuf\enum,	"1",		0,			%Enable%
HKR, Ndi\Params\MergeableBuf\enum,	"0",		0,			%Disable%

HKR, Ndi\Params\PublishIndices,		ParamDesc,	0,			%PublishIndices%
HKR, Ndi\Params\PublishIndices,		Default,	0,			DEFAULT_PUBLISHINDICES
HKR, Ndi\Params\PublishIndices,		type,		0,			"enum"
HKR, Ndi\Params\PublishIndices\enum,	"1",		0,			%Enable%
HKR, Ndi\Params\PublishIndices\enum,	"0",		0,			%Disable%

HKR, Ndi\params\NetworkAddress,		ParamDesc,  0,          %NetworkAddress%
HKR, Ndi\params\NetworkAddress,		type,       0,          "edit"
HKR, Ndi\params\NetworkAddress,		Optional,   0,          "1"

HKR, Ndi\Params\Indirect,			ParamDesc,	0,			%Indirect%
HKR, Ndi\Params\Indirect,			Default,	0,			"0"
HKR, Ndi\Params\Indirect,			type,		0,			"enum"
HKR, Ndi\Params\Indirect\enum,		"0",		0,			%Disable%
HKR, Ndi\Params\Indirect\enum,		"1",		0,			%Enable%
HKR, Ndi\Params\Indirect\enum,		"2",		0,			%Enable*%

HKR, Ndi\Params\OffLoad.TxChecksum,	ParamDesc,	0,			%OffLoad.TxChecksum%
HKR, Ndi\Params\OffLoad.TxChecksum,	Default,	0,			DEFAULT_TX_CHECKSUM
HKR, Ndi\Params\OffLoad.TxChecksum,	type,		0,			"enum"
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"31",		0,	%All%
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"27",		0,	%TCPUDPAll%
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"3",		0,	%TCPUDPv4%
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"1",		0,	%TCPv4%
HKR, Ndi\Params\OffLoad.TxChecksum\enum,	"0",		0,	%Disable%

HKR, Ndi\Params\OffLoad.TxLSO,		ParamDesc,	0,			%OffLoad.TxLSO%
HKR, Ndi\Params\OffLoad.TxLSO,		Default,	0,			"2"
HKR, Ndi\Params\OffLoad.TxLSO,		type,		0,			"enum"
HKR, Ndi\Params\OffLoad.TxLSO\enum,	"2",		0,			%Maximal%
HKR, Ndi\Params\OffLoad.TxLSO\enum,	"1",		0,			%IPv4%
HKR, Ndi\Params\OffLoad.TxLSO\enum,	"0",		0,			%Disable%
{'fraction_non_alphanumeric': 0.15253466696976586, 'fraction_numerical': 0.048495870273547015, 'mean_word_length': 3.378898473788985, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6687499', 'n_tokens_mistral': 6738, 'n_tokens_neox': 6028, 'n_words': 1164}