vhost_net: zerocopy: adding and signalling immediately when fully copied
authorJason Wang <jasowang@redhat.com>
Wed, 2 May 2012 03:42:41 +0000 (11:42 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 May 2012 15:22:24 +0000 (18:22 +0300)
commitc8fb217af57c6c232af3517d3115d2af4ce9900e
treec570166201d18f7672178e37b4f8fa6689ea8448
parentdbf34207c62bdec16b49721d119647c470a3443c
vhost_net: zerocopy: adding and signalling immediately when fully copied

When a packet were fully copied in zerocopy, we don't wait for the DMA done to
mark the done flag, so after the packet were passed to lower device, we need to
add used and signal guest immediately.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c