]> xenbits.xensource.com Git - people/pauldu/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>
Tue, 10 Jan 2017 16:51:12 +0000 (16:51 +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 ea165d65217faf9ca6c2bf3c301a9d0a28ed0f3a..3ab3cbd92499e840bcb55e5ef7b6bcac6d515003 100644 (file)
@@ -2786,6 +2786,7 @@ TransmitterRingPoll(
         KeMemoryBarrier();
 
         Ring->Front.rsp_cons = rsp_cons;
+        Ring->Shared->rsp_event = rsp_cons + 1;
     }
 
 done:
@@ -2859,8 +2860,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);