]> Git Repo - qemu.git/commit
net: notify iothread after flushing queue
authorPaolo Bonzini <[email protected]>
Thu, 9 Aug 2012 14:45:55 +0000 (16:45 +0200)
committerStefan Hajnoczi <[email protected]>
Fri, 14 Sep 2012 07:40:31 +0000 (08:40 +0100)
commit987a9b4800003567b1a47a379255e886a77d57ea
tree030780937d777488169946c3d9cb5efdcc63c3fd
parente0a1e32dbc41e6b2aabb436a9417dfd32177a3dc
net: notify iothread after flushing queue

virtio-net has code to flush the queue and notify the iothread
whenever new receive buffers are added by the guest.  That is
fine, and indeed we need to do the same in all other drivers.
However, notifying the iothread should be work for the network
subsystem.  And since we are at it we can add a little smartness:
if some of the queued packets already could not be delivered,
there is no need to notify the iothread.

Reported-by: Luigi Rizzo <[email protected]>
Cc: Stefan Hajnoczi <[email protected]>
Cc: Jan Kiszka <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Amos Kong <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
hw/virtio-net.c
net.c
net/queue.c
net/queue.h
This page took 0.027578 seconds and 4 git commands to generate.