Hello,
I am trying to add RSS support for miniport driver. For IP/TCP RSS, the code compiles fine. However, when I add support for udp RSS, the compiler throws following error:
I am using Windows 10.
Error C2065: ‘NDIS_HASH_UDP_IPV4’ : undeclared Identifier
Below declaration works/compiles fine:
SupportedRssHashTypes = NDIS_HASH_IPV4 |
NDIS_HASH_TCP_IPV4 |
NDIS_HASH_IPV6 |
NDIS_HASH_TCP_IPV6;
Below declaration throws the error for UDP RSS fields:
SupportedRssHashTypes = NDIS_HASH_IPV4 |
NDIS_HASH_TCP_IPV4 |
NDIS_HASH_UDP_IPV4 | <==== UDP RSS
NDIS_HASH_IPV6 |
NDIS_HASH_TCP_IPV6 |
NDIS_HASH_UDP_IPV6; <==== UDP RSS
Same goes for advertising UDP RSS capabilities to the stack. Below declarations also result in same error.
NDIS_RSS_CAPS_HASH_TYPE_UDP_IPV4 |
NDIS_RSS_CAPS_HASH_TYPE_UDP_IPV6;
MSDN documentation states UDP RSS is supported. https://docs.microsoft.com/en-us/windows-hardware/drivers/network/rss-hashing-types
It does not mention that any specific header files need to be included for UDP RSS support.
So, the question is do we need to add any specific header files for UDP RSS declarations? Any documentation pointing to it would be helpful. I thought NDIS_HASH_XX_XX RSS declarations would be in same header. If it works for TCP, should be the same for UDP. But maybe I am wrong.
Any help is appreciated.
Thanks