net: virtio-net and vmxnet3 use offloading API
commitcf528b89580797050b8cf60fee6247f35531a675
authorVincenzo Maffione <v.maffione@gmail.com>
Thu, 6 Feb 2014 16:02:18 +0000 (6 17:02 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 25 Feb 2014 10:50:17 +0000 (25 11:50 +0100)
treebaf6fa678ed7fa12edc3ea94cd3fed8b257d5934
parent2e753bcc7db1a7d2af0d47c0ae7e82a04ce69d63
net: virtio-net and vmxnet3 use offloading API

With this patch, virtio-net and vmxnet3 frontends make
use of the qemu_peer_* API for backend offloadings manipulations,
instead of calling TAP-specific functions directly.
We also remove the existing checks which prevent those frontends
from using offloadings with backends different from TAP (e.g. netmap).

Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/vhost_net.c
hw/net/virtio-net.c
hw/net/vmxnet3.c