summaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-06-21 19:51:18 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-24 09:09:15 -0500
commit80af1ea8f1fd752afa3ad8f219efe55009f9e306 (patch)
treea8eae458eecbafcfffa07bb196839ea2c37cbafe /net.h
parent10795ba549d432f0d382e89d783f8f06f645dbd5 (diff)
downloadqemu-80af1ea8f1fd752afa3ad8f219efe55009f9e306.tar.gz
qemu-80af1ea8f1fd752afa3ad8f219efe55009f9e306.tar.bz2
qemu-80af1ea8f1fd752afa3ad8f219efe55009f9e306.zip
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>
Diffstat (limited to 'net.h')
-rw-r--r--net.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net.h b/net.h
index a1c4d2c0e2..6ba3624ffd 100644
--- a/net.h
+++ b/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;