#include <config.h>
+#include "dynamic-string.h"
#include "ofp-util.h"
#include "ofp-version-opt.h"
-#include "vlog.h"
-#include "dynamic-string.h"
-
-VLOG_DEFINE_THIS_MODULE(ofp_version);
+#include "ovs-thread.h"
static uint32_t allowed_versions = 0;
void
set_allowed_ofp_versions(const char *string)
{
+ assert_single_threaded();
allowed_versions = ofputil_versions_from_string(string);
}
void
mask_allowed_ofp_versions(uint32_t bitmap)
{
+ assert_single_threaded();
allowed_versions &= bitmap;
}