Revision 75422b0d net.c
b/net.c | ||
---|---|---|
35 | 35 |
#include "sysemu.h" |
36 | 36 |
#include "qemu-common.h" |
37 | 37 |
#include "qemu_socket.h" |
38 |
#include "hw/qdev.h" |
|
38 | 39 |
|
39 | 40 |
static QTAILQ_HEAD(, VLANState) vlans; |
40 | 41 |
static QTAILQ_HEAD(, VLANClientState) non_vlan_clients; |
... | ... | |
804 | 805 |
return -1; |
805 | 806 |
} |
806 | 807 |
|
807 |
nd->nvectors = qemu_opt_get_number(opts, "vectors", NIC_NVECTORS_UNSPECIFIED); |
|
808 |
if (nd->nvectors != NIC_NVECTORS_UNSPECIFIED && |
|
808 |
nd->nvectors = qemu_opt_get_number(opts, "vectors", |
|
809 |
DEV_NVECTORS_UNSPECIFIED); |
|
810 |
if (nd->nvectors != DEV_NVECTORS_UNSPECIFIED && |
|
809 | 811 |
(nd->nvectors < 0 || nd->nvectors > 0x7ffffff)) { |
810 | 812 |
qemu_error("invalid # of vectors: %d\n", nd->nvectors); |
811 | 813 |
return -1; |
Also available in: Unified diff