NDIS_RSS_HASH_INFO_FROM_TYPE_AND_FUNC macro

The NDIS_RSS_HASH_INFO_FROM_TYPE_AND_FUNC macro combines a hash type and hash function into hash information and sets the HashInformation member in the NDIS_RECEIVE_SCALE_PARAMETERS structure.

Version Information

Windows Vista

Supported.

NDIS 6.0 drivers

Supported.

Syntax


ULONG NDIS_RSS_HASH_INFO_FROM_TYPE_AND_FUNC(
   ULONG HashType,
   ULONG HashFunction
);

Parameters

HashType

The hash type.

The hash type is an OR value of valid combinations of the following flags:

NDIS_HASH_IPV4

NDIS_HASH_TCP_IPV4

NDIS_HASH_IPV6

NDIS_HASH_TCP_IPV6

NDIS_HASH_IPV6_EX

NDIS_HASH_TCP_IPV6_EX

For more information about hash types and the valid combinations of these flags, see RSS Hashing Types.

HashFunction

The hash function that is used. For more information, see RSS Hashing Functions.

The hash function can be one of the following values:

NdisHashFunctionToeplitz

NdisHashFunctionReserved1

NdisHashFunctionReserved2

NdisHashFunctionReserved3

Return value

NDIS_RSS_HASH_INFO_FROM_TYPE_AND_FUNC returns the hash information that results from combining the specified hash type and hash function.

Remarks

Use the NDIS_RSS_HASH_TYPE_FROM_HASH_INFO and NDIS_RSS_HASH_FUNC_FROM_HASH_INFO macros to get the hash type and hash function from the hash information.

A NIC (or its miniport driver) uses the receive side scaling (RSS) hash type to identify the portion of received network data that is used to calculate an RSS hash value.

For more information about the hash type, see RSS Hashing Types.

A NIC (or its miniport driver) uses the RSS hashing function to calculate an RSS hash value.

For more information about the hashing functions, see RSS Hashing Functions.

Requirements

Target platform

Universal

Header

Ndis.h (include Ndis.h)

See also

NDIS_RECEIVE_SCALE_PARAMETERS
NDIS_RSS_HASH_FUNC_FROM_HASH_INFO
NDIS_RSS_HASH_TYPE_FROM_HASH_INFO

 

 

Send comments about this topic to Microsoft

Show: