OSDN Git Service

virtio-net: enable tap offload if guest supports it
authorMark McLoughlin <markmc@redhat.com>
Thu, 22 Oct 2009 16:43:47 +0000 (17:43 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 27 Oct 2009 17:29:03 +0000 (12:29 -0500)
commitf5436dd96aea2ec937964230831f241ebd3b658b
tree3ded9f3042f591e7b31df21616c49fa18fa98296
parentb1c28b464d5f21805d322b67f008e114a484146d
virtio-net: enable tap offload if guest supports it

We query the guest's feature set to see if it supports offload and,
if so, we enable those features on the tap interface.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-net.c