All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] net: Silence 'has no peer' messages in testing mode
@ 2018-05-03  5:50 Thomas Huth
  2018-05-03 11:47 ` Markus Armbruster
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Huth @ 2018-05-03  5:50 UTC (permalink / raw)
  To: qemu-devel, Jason Wang; +Cc: Markus Armbruster

When running qtests with -nodefaults, we are not interested in
these 'XYZ has no peer' messages.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 net/net.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/net/net.c b/net/net.c
index 29f8398..58bf85e 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1427,12 +1427,13 @@ void net_check_clients(void)
 
     net_hub_check_clients();
 
-    QTAILQ_FOREACH(nc, &net_clients, next) {
-        if (!nc->peer) {
-            warn_report("%s %s has no peer",
-                        nc->info->type == NET_CLIENT_DRIVER_NIC
-                        ? "nic" : "netdev",
-                        nc->name);
+    if (!qtest_enabled() || nd_table[0].used) {
+        QTAILQ_FOREACH(nc, &net_clients, next) {
+            if (!nc->peer) {
+                warn_report("%s %s has no peer",
+                            nc->info->type == NET_CLIENT_DRIVER_NIC
+                            ? "nic" : "netdev", nc->name);
+            }
         }
     }
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-09  6:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03  5:50 [Qemu-devel] [PATCH] net: Silence 'has no peer' messages in testing mode Thomas Huth
2018-05-03 11:47 ` Markus Armbruster
2018-05-04 14:55   ` Thomas Huth
2018-05-07  7:14     ` Markus Armbruster
2018-05-08 13:19       ` Thomas Huth
2018-05-09  6:18         ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.