Skip to contentSkip to conversation

Net patches

GIT PULL Applied Stefan Hajnoczi 2 participants 4 messages Mar 12, 2015 – Mar 13, 2015 Networking

lore
Share & tools
lore
#0 lore raw

v5:
* Drop rocker due to w32 warning and glib minimum version issue [Peter]

v4:
* Drop clang 3.5.0 fixes since they break with older clang and w32 [Peter]

v3:
* Add clang 3.5.0 warning fixes
* Squash David Ahern's clang struct definition warnings fix

v2:
* Squash in Jiri's fix for rocker format string specifiers [Peter]
* Squash in Windows build fix [Peter]
* Both build fixes are described in "rocker: add new rocker switch device"

The following changes since commit 2a5b58e2405e9fe42ba356b5a1b78146a4e9a659:

Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-20150312-1' into staging (2015-03-12 10:35:54 +0000)

are available in the git repository at:

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

for you to fetch changes up to 069bb5831faf19d02041569580ad77565776bb1c:

tests: rtl8139: test timers and interrupt (2015-03-12 19:59:39 +0000)

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

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

Frediano Ziglio (1):
tests: rtl8139: test timers and interrupt

Paolo Bonzini (1):
net: synchronize net_host_device_remove with
host_net_remove_completion

 net/net.c            |   6 +-
 tests/Makefile       |   2 +-
 tests/rtl8139-test.c | 181 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 185 insertions(+), 4 deletions(-)
Signature · 1 line
2.1.0
#1 lore raw

[Qemu-devel] [PULL v5 2/2] tests: rtl8139: test timers and interrupt

From: Frediano Ziglio <[email protected]>

Test behaviour of timers and interrupts related to timeouts.

Message-id: [email protected]

---
 tests/Makefile       |   2 +-
 tests/rtl8139-test.c | 181 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 182 insertions(+), 1 deletion(-)
tests/Makefile +1 -1
index 588f438..1ef95c9 100644
@@ -332,7 +332,7 @@ tests/tmp105-test$(EXESUF): tests/tmp105-test.o $(libqos-omap-obj-y)
 tests/i440fx-test$(EXESUF): tests/i440fx-test.o $(libqos-pc-obj-y)
 tests/fw_cfg-test$(EXESUF): tests/fw_cfg-test.o $(libqos-pc-obj-y)
 tests/e1000-test$(EXESUF): tests/e1000-test.o
-tests/rtl8139-test$(EXESUF): tests/rtl8139-test.o
+tests/rtl8139-test$(EXESUF): tests/rtl8139-test.o $(libqos-pc-obj-y)
 tests/pcnet-test$(EXESUF): tests/pcnet-test.o
 tests/eepro100-test$(EXESUF): tests/eepro100-test.o
 tests/vmxnet3-test$(EXESUF): tests/vmxnet3-test.o
tests/rtl8139-test.c +181 -0

200 lines not on this page · raw message

Signature · 1 line
2.1.0
#2 lore raw

[Qemu-devel] [PULL v5 1/2] net: synchronize net_host_device_remove with host_net_remove_completion

In reply to Stefan Hajnoczi

From: Paolo Bonzini <[email protected]>

Using net_host_check_device is unnecessary. qemu_del_net_client asserts for the non-peer case that it can only process NIC type NetClientStates, and that assertion is valid for the peered case as well, so move it and use the same check in net_host_device_remove. host_net_remove_completion is already checking the type.

Message-id: [email protected]

---
 net/net.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
net/net.c +3 -3
index 11fb769..0be084d 100644
@@ -324,6 +324,8 @@ void qemu_del_net_client(NetClientState *nc)
     NetClientState *ncs[MAX_QUEUE_NUM];
     int queues, i;
 
+    assert(nc->info->type != NET_CLIENT_OPTIONS_KIND_NIC);
+
     /* If the NetClientState belongs to a multiqueue backend, we will change all
      * other NetClientStates also.
      */
@@ -355,8 +357,6 @@ void qemu_del_net_client(NetClientState *nc)
         return;
     }
 
-    assert(nc->info->type != NET_CLIENT_OPTIONS_KIND_NIC);
-
     for (i = 0; i < queues; i++) {
         qemu_cleanup_net_client(ncs[i]);
         qemu_free_net_client(ncs[i]);
@@ -991,7 +991,7 @@ void hmp_host_net_remove(Monitor *mon, const QDict *qdict)
                      device, vlan_id);
         return;
     }
-    if (!net_host_check_device(nc->model)) {
+    if (nc->info->type == NET_CLIENT_OPTIONS_KIND_NIC) {
         error_report("invalid host network device '%s'", device);
         return;
     }
Signature · 1 line
2.1.0
#3 lore raw
In reply to Stefan Hajnoczi
Quoted 19 lines · Stefan Hajnoczi

v5:
* Drop rocker due to w32 warning and glib minimum version issue [Peter]

v4:
* Drop clang 3.5.0 fixes since they break with older clang and w32 [Peter]

v3:
* Add clang 3.5.0 warning fixes
* Squash David Ahern's clang struct definition warnings fix

v2:
* Squash in Jiri's fix for rocker format string specifiers [Peter]
* Squash in Windows build fix [Peter]
* Both build fixes are described in "rocker: add new rocker switch device"

The following changes since commit 2a5b58e2405e9fe42ba356b5a1b78146a4e9a659:

Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-20150312-1' into staging (2015-03-12 10:35:54 +0000)

Quoted 7 lines

are available in the git repository at:

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

for you to fetch changes up to 069bb5831faf19d02041569580ad77565776bb1c:

tests: rtl8139: test timers and interrupt (2015-03-12 19:59:39 +0000)

Applied, thanks.

-- PMM