Net patches
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(-)
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
@@ -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
[Qemu-devel] [PULL 1/2] virtio-net: avoid call tap_enable when there's only one queue
In reply to Jason WangWe 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.
--- hw/net/virtio-net.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/net/virtio-net.c +4 -0
@@ -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
[Qemu-devel] [PULL 2/2] e1000: disable debug by default
In reply to Jason WangDisable 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
@@ -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
Peter Maydell
AppliedQuoted 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 calltap_enablewhen there's only one queue
e1000: disable debug by defaulthw/net/e1000.c | 2 +- hw/net/virtio-net.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
Applied, thanks.
-- PMM