netkvm: indicate device support for hash report to WMI query
Currently the driver returns only 0/1 when respond WMI query
for RSS statistics, indicating whether the device supports RSS.
Extend the returned value by adding support for hash report
in bit 1.
@@ -483,7 +483,9 @@ static NDIS_STATUS ParaNdis_OidQuery(PARANDIS_ADAPTER *pContext, tOidDesc *pOid)
case OID_VENDOR_3:
pInfo = &rssDiag;
ulSize = sizeof(rssDiag);
+ // bit 0 - RSS supported, bit 1 - Hash supported
rssDiag.DeviceSupport = pContext->bRSSSupportedByDevice;
+ rssDiag.DeviceSupport += 2 * pContext->bHashReportedByDevice;
rssDiag.rxUnclassified = pContext->extraStatistics.framesRSSUnclassified;
rssDiag.rxMissed = pContext->extraStatistics.framesRSSMisses;
rssDiag.rxHits = pContext->extraStatistics.framesRSSHits;
