NDIS_RSS_HASH_INFO_FROM_TYPE_AND_FUNC macro (ndis/hashtypes.h)
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.
Syntax
void NDIS_RSS_HASH_INFO_FROM_TYPE_AND_FUNC(
_HashType,
_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.
The hash function can be one of the following values:
- NdisHashFunctionToeplitz
- NdisHashFunctionReserved1
- NdisHashFunctionReserved2
- NdisHashFunctionReserved3
For more information about the hashing functions, see RSS Hashing Functions.
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
Requirement | Value |
---|---|
Minimum supported client | Supported in NDIS 6.0 and later. |
Target Platform | Universal |
Header | ndis/hashtypes.h (include ndis.h) |