]> git.proxmox.com Git - mirror_ovs.git/commitdiff
dpdk: Use VLOG_INFO_ONCE instead of open-coding it.
authorBen Pfaff <blp@ovn.org>
Wed, 8 Mar 2017 23:44:39 +0000 (15:44 -0800)
committerBen Pfaff <blp@ovn.org>
Thu, 9 Mar 2017 03:39:06 +0000 (19:39 -0800)
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
lib/dpdk.c

index c1626e2246b587ed85d17ff4c7a1c90b3f89fe14..9e873617e8a43b7e123883fae285fd0c3dd4fafd 100644 (file)
@@ -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");
     }
 }