mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
463af5349a
commit
cda9046ba7
20 changed files with 57 additions and 56 deletions
10
hw/qdev.c
10
hw/qdev.c
|
@ -258,16 +258,16 @@ void qdev_connect_gpio_out(DeviceState * dev, int n, qemu_irq pin)
|
|||
}
|
||||
|
||||
VLANClientState *qdev_get_vlan_client(DeviceState *dev,
|
||||
IOCanRWHandler *fd_can_read,
|
||||
IOReadHandler *fd_read,
|
||||
IOReadvHandler *fd_readv,
|
||||
NetCanReceive *can_receive,
|
||||
NetReceive *receive,
|
||||
NetReceiveIOV *receive_iov,
|
||||
NetCleanup *cleanup,
|
||||
void *opaque)
|
||||
{
|
||||
NICInfo *nd = dev->nd;
|
||||
assert(nd);
|
||||
return qemu_new_vlan_client(nd->vlan, nd->model, nd->name, fd_can_read,
|
||||
fd_read, fd_readv, cleanup, opaque);
|
||||
return qemu_new_vlan_client(nd->vlan, nd->model, nd->name, can_receive,
|
||||
receive, receive_iov, cleanup, opaque);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue