From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: [PATCH 06/12] kvm: qemu: Rename tap_readv() to tap_receive_iov() Date: Mon, 11 Aug 2008 21:12:09 +0100 Message-ID: <1218485535-877-7-git-send-email-markmc@redhat.com> References: <1218485535-877-1-git-send-email-markmc@redhat.com> <1218485535-877-2-git-send-email-markmc@redhat.com> <1218485535-877-3-git-send-email-markmc@redhat.com> <1218485535-877-4-git-send-email-markmc@redhat.com> <1218485535-877-5-git-send-email-markmc@redhat.com> <1218485535-877-6-git-send-email-markmc@redhat.com> Cc: kvm@vger.kernel.org, Mark McLoughlin To: Avi Kivity Return-path: Received: from mail10.svc.cra.dublin.eircom.net ([159.134.118.26]:46831 "HELO mail10.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757537AbYHKUMd (ORCPT ); Mon, 11 Aug 2008 16:12:33 -0400 In-Reply-To: <1218485535-877-6-git-send-email-markmc@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Rename tap_readv() so as to match tap_receive() naming and also to allow a tap_writev() helper function to not seem so weird. Signed-off-by: Mark McLoughlin --- qemu/vl.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu/vl.c b/qemu/vl.c index fc53ae0..126944d 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -4382,8 +4382,8 @@ static void tap_receive(void *opaque, const uint8_t *buf, int size) } } -static ssize_t tap_readv(void *opaque, const struct iovec *iov, - int iovcnt) +static ssize_t tap_receive_iov(void *opaque, const struct iovec *iov, + int iovcnt) { TAPState *s = opaque; ssize_t len; @@ -4504,7 +4504,7 @@ static TAPState *net_tap_fd_init(VLANState *vlan, int fd, int vnet_hdr) s->fd = fd; s->has_vnet_hdr = vnet_hdr != 0; s->vc = qemu_new_vlan_client(vlan, tap_receive, NULL, s); - s->vc->fd_readv = tap_readv; + s->vc->fd_readv = tap_receive_iov; #ifdef TUNSETOFFLOAD s->vc->set_offload = tap_set_offload; #endif -- 1.5.4.1