diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-10-22 17:43:39 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:29:00 -0500 |
commit | 24e323631a662320851c498695cb4d4d82caa629 (patch) | |
tree | 6bb12028c6aa2033812490eba7dc11a65e2d2a72 /net.h | |
parent | bb6e636443d49f7444f49ab64dc7ec6aae1493a7 (diff) | |
download | qemu-24e323631a662320851c498695cb4d4d82caa629.tar.gz qemu-24e323631a662320851c498695cb4d4d82caa629.tar.bz2 qemu-24e323631a662320851c498695cb4d4d82caa629.zip |
net: add tap_has_vnet_hdr() and tap_using_vnet_hdr() APIs
These lamely named functions allow virtio-net to query whether
IFF_VNET_HDR is enabled on a tap interface and inform the tap code
that virtio-net will supply packets with a vnet header.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.h')
-rw-r--r-- | net.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -177,4 +177,7 @@ void net_host_device_remove(Monitor *mon, const QDict *qdict); void qdev_set_nic_properties(DeviceState *dev, NICInfo *nd); +int tap_has_vnet_hdr(VLANClientState *vc); +void tap_using_vnet_hdr(VLANClientState *vc, int using_vnet_hdr); + #endif |