]> xenbits.xensource.com Git - people/pauldu/xennet.git/commitdiff
Fix a typo that causes 'low resources' to erroneously kick in staging-8.1 8.1.0-rc11
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 24 Feb 2016 10:35:12 +0000 (10:35 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 24 Feb 2016 10:46:35 +0000 (10:46 +0000)
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 <paul.durrant@citrix.com>
src/xennet/receiver.c

index 6ce82895ffe338a8cbd68866cbdc57ac9a565d57..2c288e75526005d4f428be07b39a11fbc0816759 100644 (file)
@@ -162,7 +162,7 @@ __ReceiverReturnNetBufferList(
                VifInterface,
                Cookie);
 
-    (VOID) InterlockedIncrement(&Receiver->InNDIS);
+    (VOID) InterlockedDecrement(&Receiver->InNDIS);
 }
 
 static PNET_BUFFER_LIST