« Previous | Next » 

Revision e1f7b481

IDe1f7b4812eab992de46c98b3726745afb042a7f0

Added by Michael S. Tsirkin over 11 years ago

virtio: limit avail bytes lookahead

Commit 0d8d7690850eb0cf2b2b60933cf47669a6b6f18f introduced
a regression in virtio-net performance because it looks
into the ring aggressively while we really only care
about a single packet worth of buffers.
Reported as bugzilla 1066055 in launchpad.

To fix, add parameters limiting lookahead, and
use in virtqueue_avail_bytes.

Signed-off-by: Michael S. Tsirkin <>
Reported-by: Edivaldo de Araujo Pereira <>
Tested-by: Edivaldo de Araujo Pereira <>
Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences