If vswitchd is compiled with DPDK support but started without --dpdk argument,
it shouldn't print any dpdk initialization messages.
OVS_VSWITCHD_START (tests/ofproto-macros.at:54) is pretty strict about what the
daemon prints when starting.

The testcases failures were introduced with commit 95fb793ae73d

Signed-off-by: Daniele Di Proietto <[email protected]>
---
 lib/netdev-dpdk.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 6de1b2b..5ee105c 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -1204,6 +1204,10 @@ dpdk_class_init(void)
 static int
 dpdk_ring_class_init(void)
 {
+    if (rte_eal_init_ret) {
+        return 0;
+    }
+
     VLOG_INFO("Initialized dpdk client handlers:\n");
     return 0;
 }
-- 
2.0.0

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to