mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
net: add fd_readv() handler to qemu_new_vlan_client() args
This, apparently, is the style we prefer - all VLANClientState should be an argument to qemu_new_vlan_client(). Signed-off-by: Mark McLoughlin <markmc@redhat.com>
This commit is contained in:
parent
3471b757d0
commit
463af5349a
19 changed files with 40 additions and 35 deletions
|
@ -888,8 +888,8 @@ void dp83932_init(NICInfo *nd, target_phys_addr_t base, int it_shift,
|
|||
s->watchdog = qemu_new_timer(vm_clock, dp8393x_watchdog, s);
|
||||
s->regs[SONIC_SR] = 0x0004; /* only revision recognized by Linux */
|
||||
|
||||
s->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name,
|
||||
nic_receive, nic_can_receive, nic_cleanup, s);
|
||||
s->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name, nic_can_receive,
|
||||
nic_receive, NULL, nic_cleanup, s);
|
||||
|
||||
qemu_format_nic_info_str(s->vc, nd->macaddr);
|
||||
qemu_register_reset(nic_reset, 0, s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue