summary refs log tree commit diff stats
path: root/net/queue.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-22 17:43:45 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:29:01 -0500
commit3a330134b3effa3494051763b38f12a24715d53a (patch)
tree028e208ec6392cf19a801e25c464e6178f95d05a /net/queue.c
parent2596774ad27bbe478829343702e896bea4c621cb (diff)
downloadfocaccia-qemu-3a330134b3effa3494051763b38f12a24715d53a.tar.gz
focaccia-qemu-3a330134b3effa3494051763b38f12a24715d53a.zip
virtio-net: add vnet_hdr support
With '-netdev tap,id=foo -nic model=virtio,netdev=foo' virtio-net can
detect that its peer (i.e. the tap backend) supports vnet headers
and advertise to the guest that it can send packets with partial
checksums and/or TSO packets.

One complication is that if we're migrating and the source host
supports IFF_VNET_HDR but the destination host doesn't, we can't then
stop the guest from using those features. In this scenario, we just
fail the migration.

[v2:
 - add has_vnet_hdr uint32_t field for ease of vmstate conversion
 - use qemu_error()
]

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net/queue.c')
0 files changed, 0 insertions, 0 deletions