]> xenbits.xensource.com Git - people/pauldu/xennet.git/commitdiff
Fix a typo that causes 'low resources' to erroneously kick in
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:35:12 +0000 (10:35 +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 863dbd77d5c2751813225616db5ee1ccb8135e0e..7645a8cd0a595887072064adf1ec7aff4437b453 100644 (file)
@@ -161,7 +161,7 @@ __ReceiverReturnNetBufferList(
                VifInterface,
                Cookie);
 
-    (VOID) InterlockedIncrement(&Receiver->InNDIS);
+    (VOID) InterlockedDecrement(&Receiver->InNDIS);
 }
 
 static PNET_BUFFER_LIST