Message ID | 1386936303-7697-6-git-send-email-v.maffione@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index c8ee2fa..8a94539 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -325,10 +325,6 @@ static void peer_test_vnet_hdr(VirtIONet *n) return; } - if (nc->peer->info->type != NET_CLIENT_OPTIONS_KIND_TAP) { - return; - } - n->has_vnet_hdr = qemu_peer_has_vnet_hdr(nc); } diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index f00c649..0524684 100644 --- a/hw/net/vmxnet3.c +++ b/hw/net/vmxnet3.c @@ -1885,9 +1885,7 @@ static bool vmxnet3_peer_has_vnet_hdr(VMXNET3State *s) { NetClientState *nc = qemu_get_queue(s->nic); - if ((NULL != nc->peer) && - (nc->peer->info->type == NET_CLIENT_OPTIONS_KIND_TAP) && - qemu_peer_has_vnet_hdr(nc)) { + if (qemu_peer_has_vnet_hdr(nc)) { return true; }
With this patch we remove the existing checks in the virtio-net and vmxnet3 frontends that prevents them from using offloadings with backends different from TAP (e.g. netmap). Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com> --- hw/net/virtio-net.c | 4 ---- hw/net/vmxnet3.c | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-)