From 1ff7aa1a84751dff1bf3f7d8ab81388f6af67cc2 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Wed, 24 Feb 2016 10:35:12 +0000 Subject: [PATCH] Fix a typo that causes 'low resources' to erroneously kick in This patch fixes a typo which caused XENNET to operate in a 'low resources' situation most of the time. This was almost certainly causing performance issues and, oddly, caused the NDISTest 6.5 OffloadChecksum test to fail... but only on Windows 8.0. Signed-off-by: Paul Durrant --- src/xennet/receiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xennet/receiver.c b/src/xennet/receiver.c index 863dbd7..7645a8c 100644 --- a/src/xennet/receiver.c +++ b/src/xennet/receiver.c @@ -161,7 +161,7 @@ __ReceiverReturnNetBufferList( VifInterface, Cookie); - (VOID) InterlockedIncrement(&Receiver->InNDIS); + (VOID) InterlockedDecrement(&Receiver->InNDIS); } static PNET_BUFFER_LIST -- 2.39.5