netkvm: ack packed ring feature if suggested
The driver acks the feature if VERSION_1 is also set.
The device will use packed ring if enabled in the command-line.
Currently the device suppress this feature when vhost is on.
@@ -858,6 +858,10 @@ NDIS_STATUS ParaNdis_InitializeContext(
pContext->nVirtioHeaderSize = sizeof(virtio_net_hdr_v1);
pContext->bAnyLayout = true;
DPrintf(0, "[%s] Assuming VIRTIO_F_ANY_LAYOUT for V1 device\n", __FUNCTION__);
+ if (AckFeature(pContext, VIRTIO_F_RING_PACKED))
+ {
+ DPrintf(0, "[%s] Using PACKED ring\n", __FUNCTION__);
+ }
}
if (pContext->bControlQueueSupported)
