diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-05-18 13:13:16 +0100 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2009-06-09 11:38:49 +0100 |
commit | 929264d344011ff25adbda689cae2e06d765a871 (patch) | |
tree | da29fa06d782170b8214be44382549735eafa3b3 /hw/virtio-net.c | |
parent | 9b67223d9bdf0608ba710e9fda26e851ba83e708 (diff) | |
download | qemu-929264d344011ff25adbda689cae2e06d765a871.tar.gz qemu-929264d344011ff25adbda689cae2e06d765a871.tar.bz2 qemu-929264d344011ff25adbda689cae2e06d765a871.zip |
net: re-name vc->fd_read() to vc->receive()
VLANClientState's fd_read() handler doesn't read from file
descriptors, it adds a buffer to the client's receive queue.
Re-name the handlers to make things a little less confusing.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'hw/virtio-net.c')
-rw-r--r-- | hw/virtio-net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 561330825e..3ca93f5872 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -361,7 +361,7 @@ static int receive_filter(VirtIONet *n, const uint8_t *buf, int size) return 0; } -static void virtio_net_receive(void *opaque, const uint8_t *buf, int size) +static void virtio_net_receive(void *opaque, const uint8_t *buf, size_t size) { VirtIONet *n = opaque; struct virtio_net_hdr_mrg_rxbuf *mhdr = NULL; |