Skip to content

Commit

Permalink
dpdk: Use VLOG_INFO_ONCE instead of open-coding it.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
  • Loading branch information
blp committed Mar 9, 2017
1 parent 1a608e2 commit 5575908
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions 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.
Expand Down Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 5575908

Please sign in to comment.