mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 20:41:52 -06:00
net: remove VLANClientState members now in NetClientInfo
Add a NetClientInfo pointer to VLANClientState and use that for the typecode and function pointers. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
68da46eeb6
commit
665a3b071d
5 changed files with 27 additions and 40 deletions
|
@ -129,7 +129,7 @@ static int peer_has_vnet_hdr(VirtIONet *n)
|
|||
if (!n->nic->nc.peer)
|
||||
return 0;
|
||||
|
||||
if (n->nic->nc.peer->type != NET_CLIENT_TYPE_TAP)
|
||||
if (n->nic->nc.peer->info->type != NET_CLIENT_TYPE_TAP)
|
||||
return 0;
|
||||
|
||||
n->has_vnet_hdr = tap_has_vnet_hdr(n->nic->nc.peer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue