Don't require all drivers to use virtio_net_hdr
commitf4d200eab4285ac0c9072b7ab3c4abbb8a08b8b3
authorMark McLoughlin <markmc@redhat.com>
Tue, 12 Aug 2008 17:41:05 +0000 (12 18:41 +0100)
committerAvi Kivity <avi@qumranet.com>
Wed, 13 Aug 2008 09:12:13 +0000 (13 12:12 +0300)
tree6562a3ecc6e8ffd0afc93ed61e249a49a1e66b4a
parent1f5034d5c1d184b36b8aca41272ed31718086919
Don't require all drivers to use virtio_net_hdr

Hi Avi,

Thanks for catching the build error in this one.

Here's a new (yet uglier) version; the rest remain the same.

Cheers,
Mark.

Subject: [PATCH 08/11] kvm: qemu: Don't require all drivers to use virtio_net_hdr

The virtio-net driver is the only one which wishes to deal
with virtio_net_hdr headers, so add a "using_vnet_hdr" flag
to allow it to indicate this.

Preferably, we'd prefer to only enable IFF_VNET_HDR when
we're using virtio-net, but qemu's various abstractions
would make this very messy.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/virtio-net.c
net.h
vl.c