]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Deferring transmit completion causes MPE_Ethernet test failures
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 10 Jan 2017 16:51:12 +0000 (16:51 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 11 Jan 2017 10:37:24 +0000 (10:37 +0000)
The test imposes a strict timeout on transmit completion so unfortunately
we have to complete eagerly.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvif/transmitter.c

index f861efa4a55f587e50500d0324c82986ab12c031..25d145aff94c705c7600b2ac59038d013377afe8 100644 (file)
@@ -2785,6 +2785,7 @@ TransmitterRingPoll(
         KeMemoryBarrier();
 
         Ring->Front.rsp_cons = rsp_cons;
+        Ring->Shared->rsp_event = rsp_cons + 1;
     }
 
 done:
@@ -2858,8 +2859,6 @@ __TransmitterRingPushRequests(
 #pragma warning (push)
 #pragma warning (disable:4244)
 
-    Ring->Shared->rsp_event = Ring->Front.req_prod_pvt;
-
     // Make the requests visible to the backend
     RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&Ring->Front, Notify);