summary refs log tree commit diff stats
path: root/net/tap.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-22 17:49:14 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-30 08:39:28 -0500
commitdc69004c7d89afb6ede02ca9379075c062c0c091 (patch)
tree3a365fe328d765619951dbf732b43f39d7226262 /net/tap.c
parent15ac913bfe10abe142334a8b432c1f4c410fb04b (diff)
downloadfocaccia-qemu-dc69004c7d89afb6ede02ca9379075c062c0c091.tar.gz
focaccia-qemu-dc69004c7d89afb6ede02ca9379075c062c0c091.zip
net: move tap_probe_vnet_hdr() to tap-linux.c
Only Linux has support for IFF_VNET_HDR

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net/tap.c')
-rw-r--r--net/tap.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/net/tap.c b/net/tap.c
index df2cfbe13c..3f6722ea6c 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -239,18 +239,6 @@ void tap_using_vnet_hdr(VLANClientState *vc, int using_vnet_hdr)
     s->using_vnet_hdr = using_vnet_hdr;
 }
 
-static int tap_probe_vnet_hdr(int fd)
-{
-    struct ifreq ifr;
-
-    if (ioctl(fd, TUNGETIFF, &ifr) != 0) {
-        qemu_error("TUNGETIFF ioctl() failed: %s\n", strerror(errno));
-        return 0;
-    }
-
-    return ifr.ifr_flags & IFF_VNET_HDR;
-}
-
 void tap_set_offload(VLANClientState *vc, int csum, int tso4,
                      int tso6, int ecn, int ufo)
 {