« Previous | Next » 

Revision 987a9b48

ID987a9b4800003567b1a47a379255e886a77d57ea

Added by Paolo Bonzini over 11 years ago

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 <>
Cc: Stefan Hajnoczi <>
Cc: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>
Reviewed-by: Amos Kong <>
Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences