From be71f1a46e8d9f0988bfa9ddb7e2f7f8b9a6132a Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Tue, 1 Dec 2020 13:37:16 +0000 Subject: [PATCH] Don't assume queue numbers can't be larger than 99 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 --- 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 ffd6111..30de494 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.39.5