mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07: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
|
|
@ -214,7 +214,7 @@ int tap_has_ufo(VLANClientState *nc)
|
|||
{
|
||||
TAPState *s = DO_UPCAST(TAPState, nc, nc);
|
||||
|
||||
assert(nc->type == NET_CLIENT_TYPE_TAP);
|
||||
assert(nc->info->type == NET_CLIENT_TYPE_TAP);
|
||||
|
||||
return s->has_ufo;
|
||||
}
|
||||
|
|
@ -223,7 +223,7 @@ int tap_has_vnet_hdr(VLANClientState *nc)
|
|||
{
|
||||
TAPState *s = DO_UPCAST(TAPState, nc, nc);
|
||||
|
||||
assert(nc->type == NET_CLIENT_TYPE_TAP);
|
||||
assert(nc->info->type == NET_CLIENT_TYPE_TAP);
|
||||
|
||||
return s->has_vnet_hdr;
|
||||
}
|
||||
|
|
@ -234,7 +234,7 @@ void tap_using_vnet_hdr(VLANClientState *nc, int using_vnet_hdr)
|
|||
|
||||
using_vnet_hdr = using_vnet_hdr != 0;
|
||||
|
||||
assert(nc->type == NET_CLIENT_TYPE_TAP);
|
||||
assert(nc->info->type == NET_CLIENT_TYPE_TAP);
|
||||
assert(s->has_vnet_hdr == using_vnet_hdr);
|
||||
|
||||
s->using_vnet_hdr = using_vnet_hdr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue