X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-version-opt.c;h=84e83d8e76fb603dcb3cbf4950b967ccf274125b;hb=728a8b141ff670d0b98b61bd88a6bb7a9c719e26;hp=35d79e671d08a23f8a10a6e0f744ea17eabf8115;hpb=1514b275558304c63bc3838c2da5c4be0c1cbef0;p=sliver-openvswitch.git diff --git a/lib/ofp-version-opt.c b/lib/ofp-version-opt.c index 35d79e671..84e83d8e7 100644 --- a/lib/ofp-version-opt.c +++ b/lib/ofp-version-opt.c @@ -1,6 +1,7 @@ #include #include "ofp-util.h" #include "ofp-version-opt.h" +#include "ovs-thread.h" #include "vlog.h" #include "dynamic-string.h" @@ -17,12 +18,14 @@ get_allowed_ofp_versions(void) 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; }