From: Paul Durrant Date: Wed, 24 Feb 2016 10:35:12 +0000 (+0000) Subject: Fix a typo that causes 'low resources' to erroneously kick in X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1ff7aa1a84751dff1bf3f7d8ab81388f6af67cc2;p=people%2Fpauldu%2Fxennet.git 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 --- 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