net: re-instate some lost vnet_hdr code
commit00cf2c16af40041b7c67801aa40b6b7abeeeb0c4
authorMark McLoughlin <markmc@redhat.com>
Wed, 8 Jul 2009 08:47:38 +0000 (8 09:47 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 8 Jul 2009 10:18:02 +0000 (8 13:18 +0300)
tree09add62b98aa193b3e5a8ea94277bbc41db0f365
parent9af4aed6c749786edb780e5de1795377f515e8f7
net: re-instate some lost vnet_hdr code

Merge commit 211eb5f301 lost the code we had in tap_send_packet() to
handle the case of the tapfd having IF_VNET_HDR enabled, but the
NIC code not having support for virtio_net_hdr. In this case, we just
strip off the header before passing it to the NIC.

Fixes:

  http://sourceforge.net/tracker/?func=detail&atid=893831&aid=2817367&group_id=180599
    Network doesn't work anymore switching from kvm-86 to kvm-87

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
net.c