]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Set FrontendMaxQueues by default
authorOwen Smith <owen.smith@cloud.com>
Fri, 26 May 2023 08:17:10 +0000 (09:17 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Wed, 7 Jun 2023 10:21:34 +0000 (11:21 +0100)
Limiting the number of queues to the same value defined in xennet's INF
file prevents xenvif from allocating many more resources than required.

Currently, xenvif will allocate a queue for each active CPU, but xennet
only reports a maximum of 8 RSS queues to Windows. When vCPU count is
greather than 8, additional queues are not used and just consume resources.

Signed-off-by: Owen Smith <owen.smith@cloud.com>
src/xenvif.inf

index d81fe52c65dd4568385e7b907ad6b6488c5e9f4e..4b5c9f7a18f7d2850988392e37260a29f032375e 100644 (file)
@@ -88,6 +88,7 @@ HKR,,"BootFlags",0x00010003,0x81
 [XenVif_Parameters]
 HKR,"Parameters",,0x00000010
 HKR,"Parameters","RequestKey",0x00000000,%RequestKey%
+HKR,"Parameters","FrontendMaxQueues",0x00010001,0x00000008
 
 [XenVif_Inst.CoInstallers]
 CopyFiles=CoInst_CopyFiles