diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-03-31 10:09:42 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-03-31 10:09:42 +0100 |
commit | a0ee3797bf4917b1b7a4554a4dffbb45f387f087 (patch) | |
tree | e4e9a419d05c08874dd46e84055e8137b1159a65 | |
parent | ddc2c3a57e0752c0650fdb735a8b8322542d4248 (diff) | |
parent | b4053c64833762f1249b2d704d2da30b5b10c8ff (diff) | |
download | qemu-a0ee3797bf4917b1b7a4554a4dffbb45f387f087.zip qemu-a0ee3797bf4917b1b7a4554a4dffbb45f387f087.tar.gz qemu-a0ee3797bf4917b1b7a4554a4dffbb45f387f087.tar.bz2 |
Merge remote-tracking branch 'remotes/jasowang/tags/net-pull-request' into staging
# gpg: Signature made Fri 31 Mar 2017 01:50:55 BST
# gpg: using RSA key 0xEF04965B398D6211
# gpg: Good signature from "Jason Wang (Jason Wang on RedHat) <jasowang@redhat.com>"
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg: It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 215D 46F4 8246 689E C77F 3562 EF04 965B 398D 6211
* remotes/jasowang/tags/net-pull-request:
e1000: disable debug by default
virtio-net: avoid call tap_enable when there's only one queue
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/net/e1000.c | 2 | ||||
-rw-r--r-- | hw/net/virtio-net.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 9324949..f2e5072 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -40,7 +40,7 @@ static const uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; -#define E1000_DEBUG +/* #define E1000_DEBUG */ #ifdef E1000_DEBUG enum { diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index c321680..7d091c9 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -510,6 +510,10 @@ static int peer_attach(VirtIONet *n, int index) return 0; } + if (n->max_queues == 1) { + return 0; + } + return tap_enable(nc->peer); } |