[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH xenvif] Don't assume queue numbers can't be larger than 99



From: Paul Durrant <pdurrant@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 src/xenvif/frontend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xenvif/frontend.c b/src/xenvif/frontend.c
index ffd611120adf..30de494d2484 100644
--- a/src/xenvif/frontend.c
+++ b/src/xenvif/frontend.c
@@ -283,7 +283,7 @@ FrontendFormatPath(
     NTSTATUS                status;
 
     Length = (ULONG)(strlen(__FrontendGetPath(Frontend)) +
-                     strlen("/queue-XX") +
+                     strlen("/queue-XXX") +
                      1) * sizeof (CHAR);
 
     Path = __FrontendAllocate(Length);
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.