From 24e323631a662320851c498695cb4d4d82caa629 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 22 Oct 2009 17:43:39 +0100 Subject: 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 Signed-off-by: Anthony Liguori --- net.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net.h') diff --git a/net.h b/net.h index f592ffb290..7078708807 100644 --- a/net.h +++ b/net.h @@ -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 -- cgit v1.2.1