[PATCH 06/12] kvm: qemu: Rename tap_readv() to tap_receive_iov()

Mark McLoughlin
2008-08-11T20:12:33Z

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 <markmc@redhat.com>
---
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