When sending packets, there is no need to enable a transmit reponse
event until the ring fills or there are no more packets to send.
This patch therefore defers advancing the ring event count until just
before a batch of packets are pushed.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
KeMemoryBarrier();
Ring->Front.rsp_cons = rsp_cons;
- Ring->Shared->rsp_event = rsp_cons + 1;
}
done:
#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);