mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
net: pass VLANClientState* as first arg to receive handlers
Give static type checking a chance to catch errors. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
This commit is contained in:
parent
cda9046ba7
commit
e3f5ec2b5e
19 changed files with 90 additions and 90 deletions
|
@ -592,17 +592,17 @@ e1000_set_link_status(VLANClientState *vc)
|
|||
}
|
||||
|
||||
static int
|
||||
e1000_can_receive(void *opaque)
|
||||
e1000_can_receive(VLANClientState *vc)
|
||||
{
|
||||
E1000State *s = opaque;
|
||||
E1000State *s = vc->opaque;
|
||||
|
||||
return (s->mac_reg[RCTL] & E1000_RCTL_EN);
|
||||
}
|
||||
|
||||
static void
|
||||
e1000_receive(void *opaque, const uint8_t *buf, size_t size)
|
||||
e1000_receive(VLANClientState *vc, const uint8_t *buf, size_t size)
|
||||
{
|
||||
E1000State *s = opaque;
|
||||
E1000State *s = vc->opaque;
|
||||
struct e1000_rx_desc desc;
|
||||
target_phys_addr_t base;
|
||||
unsigned int n, rdt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue