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-Tag: 8.1.0-rc11^0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4c05f58f9ebf3344596d8be2e3d6edd66c280491;p=pvdrivers%2Fwin%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 6ce8289..2c288e7 100644 --- a/src/xennet/receiver.c +++ b/src/xennet/receiver.c @@ -162,7 +162,7 @@ __ReceiverReturnNetBufferList( VifInterface, Cookie); - (VOID) InterlockedIncrement(&Receiver->InNDIS); + (VOID) InterlockedDecrement(&Receiver->InNDIS); } static PNET_BUFFER_LIST