mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
conf: move anonymous backend struct from virDomainNetDef into its own struct
This will allow us to call parser/formatter functions with a pointer to just the backend part. Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d3307a8fd2
commit
7f6bb51eb9
@ -1051,6 +1051,11 @@ struct _virDomainActualNetDef {
|
|||||||
unsigned int class_id; /* class ID for bandwidth 'floor' */
|
unsigned int class_id; /* class ID for bandwidth 'floor' */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct _virDomainNetBackend {
|
||||||
|
char *tap;
|
||||||
|
char *vhost;
|
||||||
|
};
|
||||||
|
|
||||||
/* Stores the virtual network interface configuration */
|
/* Stores the virtual network interface configuration */
|
||||||
struct _virDomainNetDef {
|
struct _virDomainNetDef {
|
||||||
virDomainNetType type;
|
virDomainNetType type;
|
||||||
@ -1089,10 +1094,7 @@ struct _virDomainNetDef {
|
|||||||
virTristateSwitch rss_hash_report;
|
virTristateSwitch rss_hash_report;
|
||||||
} virtio;
|
} virtio;
|
||||||
} driver;
|
} driver;
|
||||||
struct {
|
virDomainNetBackend backend;
|
||||||
char *tap;
|
|
||||||
char *vhost;
|
|
||||||
} backend;
|
|
||||||
virDomainNetTeamingInfo *teaming;
|
virDomainNetTeamingInfo *teaming;
|
||||||
union {
|
union {
|
||||||
virDomainChrSourceDef *vhostuser;
|
virDomainChrSourceDef *vhostuser;
|
||||||
|
@ -172,6 +172,8 @@ typedef struct _virDomainMomentObjList virDomainMomentObjList;
|
|||||||
|
|
||||||
typedef struct _virDomainNVRAMDef virDomainNVRAMDef;
|
typedef struct _virDomainNVRAMDef virDomainNVRAMDef;
|
||||||
|
|
||||||
|
typedef struct _virDomainNetBackend virDomainNetBackend;
|
||||||
|
|
||||||
typedef struct _virDomainNetDef virDomainNetDef;
|
typedef struct _virDomainNetDef virDomainNetDef;
|
||||||
|
|
||||||
typedef struct _virDomainNetTeamingInfo virDomainNetTeamingInfo;
|
typedef struct _virDomainNetTeamingInfo virDomainNetTeamingInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user