qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [7153] struct iovec is now universally available (Mark McLo


From: Anthony Liguori
Subject: [Qemu-devel] [7153] struct iovec is now universally available (Mark McLoughlin)
Date: Fri, 17 Apr 2009 18:06:28 +0000

Revision: 7153
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7153
Author:   aliguori
Date:     2009-04-17 18:06:27 +0000 (Fri, 17 Apr 2009)
Log Message:
-----------
struct iovec is now universally available (Mark McLoughlin)

struct iovec is now defined in qemu-common.h if needed, so we don't need
the tap code to handle !defined(HAVE_IOVEC).

Signed-off-by: Mark McLoughlin <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

Modified Paths:
--------------
    branches/stable_0_10/net.c

Modified: branches/stable_0_10/net.c
===================================================================
--- branches/stable_0_10/net.c  2009-04-17 18:06:24 UTC (rev 7152)
+++ branches/stable_0_10/net.c  2009-04-17 18:06:27 UTC (rev 7153)
@@ -698,7 +698,6 @@
     char down_script_arg[128];
 } TAPState;
 
-#ifdef HAVE_IOVEC
 static ssize_t tap_receive_iov(void *opaque, const struct iovec *iov,
                                int iovcnt)
 {
@@ -711,7 +710,6 @@
 
     return len;
 }
-#endif
 
 static void tap_receive(void *opaque, const uint8_t *buf, int size)
 {
@@ -758,9 +756,7 @@
     s = qemu_mallocz(sizeof(TAPState));
     s->fd = fd;
     s->vc = qemu_new_vlan_client(vlan, model, name, tap_receive, NULL, s);
-#ifdef HAVE_IOVEC
     s->vc->fd_readv = tap_receive_iov;
-#endif
     qemu_set_fd_handler(s->fd, tap_send, NULL, s);
     snprintf(s->vc->info_str, sizeof(s->vc->info_str), "fd=%d", fd);
     return s;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]