summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-03-08 15:44:39 -0800
committerBen Pfaff <blp@ovn.org>2017-03-08 19:39:06 -0800
commit5575908b013b85189aac50c3672c4111676d5116 (patch)
tree8aa9af3a46854b84d68d6685210a9d738d87464f /lib
parent1a608e245275044f197406c68d6018184c5076df (diff)
downloadopenvswitch-5575908b013b85189aac50c3672c4111676d5116.tar.gz
dpdk: Use VLOG_INFO_ONCE instead of open-coding it.
Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/dpdk.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/dpdk.c b/lib/dpdk.c
index c1626e224..9e873617e 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");
}
}