mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qemu/net: flag to control the number of vectors a nic has
Add an option to specify the number of MSI-X vectors for PCI NIC cards. This can also be used to disable MSI-X, for compatibility with old qemu. This option currently only affects virtio cards. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
566e2d3e88
commit
ffe6370c9f
4 changed files with 33 additions and 8 deletions
4
net.h
4
net.h
|
@ -84,6 +84,9 @@ int do_set_link(Monitor *mon, const char *name, const char *up_or_down);
|
|||
/* NIC info */
|
||||
|
||||
#define MAX_NICS 8
|
||||
enum {
|
||||
NIC_NVECTORS_UNSPECIFIED = -1
|
||||
};
|
||||
|
||||
struct NICInfo {
|
||||
uint8_t macaddr[6];
|
||||
|
@ -94,6 +97,7 @@ struct NICInfo {
|
|||
void *private;
|
||||
int used;
|
||||
int bootable;
|
||||
int nvectors;
|
||||
};
|
||||
|
||||
extern int nb_nics;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue