summaryrefslogtreecommitdiffstats
path: root/net/tap.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin2010-03-17 12:07:50 +0100
committerAnthony Liguori2010-04-01 20:56:43 +0200
commit95d528a2fe9f1eaec11dc3256dc9dec49b557990 (patch)
tree11c937b0f1f5e7810b82b8c00b626393be862f0c /net/tap.h
parentvirtio-pci: compile per-target (diff)
downloadqemu-95d528a2fe9f1eaec11dc3256dc9dec49b557990.tar.gz
qemu-95d528a2fe9f1eaec11dc3256dc9dec49b557990.tar.xz
qemu-95d528a2fe9f1eaec11dc3256dc9dec49b557990.zip
tap: add interface to get device fd
Will be used by vhost to attach/detach to backend. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net/tap.h')
-rw-r--r--net/tap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tap.h b/net/tap.h
index 538a562720..a244b28f82 100644
--- a/net/tap.h
+++ b/net/tap.h
@@ -48,4 +48,6 @@ int tap_probe_vnet_hdr(int fd);
int tap_probe_has_ufo(int fd);
void tap_fd_set_offload(int fd, int csum, int tso4, int tso6, int ecn, int ufo);
+int tap_get_fd(VLANClientState *vc);
+
#endif /* QEMU_NET_TAP_H */