From 3945a735943c9c92abe3148e4e6b0b43a5dfa23c Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 11 Aug 2008 21:12:09 +0100 Subject: [PATCH] Rename tap_readv() to tap_receive_iov() 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 Signed-off-by: Avi Kivity --- vl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index fc53ae0f31..126944dd4a 100644 --- a/vl.c +++ b/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 -- 2.11.4.GIT