mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 13:58:14 +00:00
bridge: Fix reversed string parsing in bridge_configure_flow_miss_model().
This commit fixes a command matching error introduced by commit
7155fa52f
(ofproto-dpif: Add 'force-miss-model' configuration).
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -884,9 +884,9 @@ bridge_configure_flow_miss_model(const char *opt)
|
||||
enum ofproto_flow_miss_model model = OFPROTO_HANDLE_MISS_AUTO;
|
||||
|
||||
if (opt) {
|
||||
if (strcmp(opt, "with-facets")) {
|
||||
if (!strcmp(opt, "with-facets")) {
|
||||
model = OFPROTO_HANDLE_MISS_WITH_FACETS;
|
||||
} else if (strcmp(opt, "without-facets")) {
|
||||
} else if (!strcmp(opt, "without-facets")) {
|
||||
model = OFPROTO_HANDLE_MISS_WITHOUT_FACETS;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user