Skip to contentSkip to conversation

Net patches

GIT PULL New Jason Wang 2 participants 5 messages Mar 31, 2017

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

The following changes since commit ddc2c3a57e0752c0650fdb735a8b8322542d4248:

Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2017-03-30 18:02:33 +0100)

are available in the git repository at:

https://github.com/jasowang/qemu.git tags/net-pull-request

for you to fetch changes up to b4053c64833762f1249b2d704d2da30b5b10c8ff:

e1000: disable debug by default (2017-03-31 08:48:13 +0800)

----------------------------------------------------------------

----------------------------------------------------------------
Jason Wang (2):
virtio-net: avoid call tap_enable when there's only one queue
e1000: disable debug by default

 hw/net/e1000.c      | 2 +-
 hw/net/virtio-net.c | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
author
#1 lore raw

PATCH 1/1 e1000: disable debug by default

Disable debug output by default, the information were not needed for release.

---
 hw/net/e1000.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/e1000.c +1 -1
index 9324949..f2e5072 100644
@@ -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 {
Signature · 1 line
2.7.4
author
#2 lore raw

[Qemu-devel] [PULL 1/2] virtio-net: avoid call tap_enable when there's only one queue

In reply to Jason Wang

We call tap_enable() even if for multiqueue is not enabled. This is wrong since it should be used for multiqueue codes to enable a disabled queue. Fixing this by only calling this when multiqueue is used.

Fixes 16dbaf905b72 ("tap: support enabling or disabling a queue")
---
 hw/net/virtio-net.c | 4 ++++
 1 file changed, 4 insertions(+)
hw/net/virtio-net.c +4 -0
index c321680..7d091c9 100644
@@ -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);
 }
 
Signature · 1 line
2.7.4
author
#3 lore raw

[Qemu-devel] [PULL 2/2] e1000: disable debug by default

In reply to Jason Wang

Disable debug output by default, the information were not needed for release.

---
 hw/net/e1000.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/e1000.c +1 -1
index 9324949..f2e5072 100644
@@ -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 {
Signature · 1 line
2.7.4
#4 lore raw
In reply to Jason Wang
Quoted 14 lines · Jason Wang

The following changes since commit ddc2c3a57e0752c0650fdb735a8b8322542d4248:

Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2017-03-30 18:02:33 +0100)

are available in the git repository at:

https://github.com/jasowang/qemu.git tags/net-pull-request

for you to fetch changes up to b4053c64833762f1249b2d704d2da30b5b10c8ff:

e1000: disable debug by default (2017-03-31 08:48:13 +0800)

----------------------------------------------------------------

Quoted 8 lines

----------------------------------------------------------------
Jason Wang (2):
virtio-net: avoid call tap_enable when there's only one queue
e1000: disable debug by default

 hw/net/e1000.c      | 2 +-
 hw/net/virtio-net.c | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

Applied, thanks.

-- PMM