OSDN Git Service

virtio-net: simplify rx code
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 24 Sep 2012 12:54:44 +0000 (14:54 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Oct 2012 16:25:23 +0000 (18:25 +0200)
commit7b80d08efc36fd6c7881e98302f00148b5fd908a
tree935e9549400c5b05ee5047a287a7b9ea73258d85
parent14761f9cf7fbc6d058c1e51c313a139066eab256
virtio-net: simplify rx code

Remove code duplication using guest header length that we track.
Drop specific layout requirement for rx buffers: things work
using generic iovec functions in any case.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-net.c