]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Don't assume queue numbers can't be larger than 99
authorPaul Durrant <pdurrant@amazon.com>
Tue, 1 Dec 2020 13:37:16 +0000 (13:37 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Tue, 1 Dec 2020 13:37:16 +0000 (13:37 +0000)
The theoretical maximum number of receiver or transmitter queues is limited at
the number of vCPUs in the VM, and this can be as many as 128 (limited by
Xen).

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenvif/frontend.c

index ffd611120adf3375bdef5b6f9e41519293bf3065..30de494d24840730fe5ca3a4182dcdc2e6fe7f8e 100644 (file)
@@ -283,7 +283,7 @@ FrontendFormatPath(
     NTSTATUS                status;
 
     Length = (ULONG)(strlen(__FrontendGetPath(Frontend)) +
-                     strlen("/queue-XX") +
+                     strlen("/queue-XXX") +
                      1) * sizeof (CHAR);
 
     Path = __FrontendAllocate(Length);