Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LusSM-0005dk-0p for qemu-devel@nongnu.org; Fri, 17 Apr 2009 14:06:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LusSL-0005dN-Hj for qemu-devel@nongnu.org; Fri, 17 Apr 2009 14:06:29 -0400 Received: from [199.232.76.173] (port=60727 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LusSL-0005dC-4m for qemu-devel@nongnu.org; Fri, 17 Apr 2009 14:06:29 -0400 Received: from savannah.gnu.org ([199.232.41.3]:34150 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LusSK-0002fL-N9 for qemu-devel@nongnu.org; Fri, 17 Apr 2009 14:06:28 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LusSK-0004ES-9a for qemu-devel@nongnu.org; Fri, 17 Apr 2009 18:06:28 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LusSK-0004EO-2p for qemu-devel@nongnu.org; Fri, 17 Apr 2009 18:06:28 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 17 Apr 2009 18:06:28 +0000 Subject: [Qemu-devel] [7153] struct iovec is now universally available (Mark McLoughlin) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Signed-off-by: Anthony Liguori 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;