Signed-off-by: Ben Pfaff <[email protected]>
---
lib/dpdk.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/lib/dpdk.c b/lib/dpdk.c
index c1626e2246b5..9e873617e8a4 100644
--- a/lib/dpdk.c
+++ b/lib/dpdk.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2015, 2016 Nicira, Inc.
+ * Copyright (c) 2014, 2015, 2016, 2017 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -424,11 +424,7 @@ dpdk_init(const struct smap *ovs_other_config)
ovsthread_once_done(&once_enable);
}
} else {
- static struct ovsthread_once once_disable = OVSTHREAD_ONCE_INITIALIZER;
- if (ovsthread_once_start(&once_disable)) {
- VLOG_INFO("DPDK Disabled - Use other_config:dpdk-init to enable");
- ovsthread_once_done(&once_disable);
- }
+ VLOG_INFO_ONCE("DPDK Disabled - Use other_config:dpdk-init to enable");
}
}
--
2.10.2
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev