summaryrefslogtreecommitdiff
path: root/lib/learning-switch.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-06-01 09:09:20 -0700
committerBen Pfaff <blp@nicira.com>2011-06-01 09:09:20 -0700
commit7286b1e13dbf358ea6071d04b311474208308ad6 (patch)
treec796e20d658fc57c11b79a72de70ea25c2795201 /lib/learning-switch.h
parenteb6f28db085cdf8dd506aa06825199e09f85c32c (diff)
downloadopenvswitch-7286b1e13dbf358ea6071d04b311474208308ad6.tar.gz
ovs-controller: Allow --wildcards to specify a wildcard set.
Based on a patch by Jean Tourrilhes <jt@hpl.hp.com>. According to Jean, besides increasing flexibility, this reduces normalization warnings. Tested-by: Jean Tourrilhes <jt@hpl.hp.com>
Diffstat (limited to 'lib/learning-switch.h')
-rw-r--r--lib/learning-switch.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/learning-switch.h b/lib/learning-switch.h
index e5036906f..c6f347e19 100644
--- a/lib/learning-switch.h
+++ b/lib/learning-switch.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2010 Nicira Networks.
+ * Copyright (c) 2008, 2010, 2011 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,8 +33,13 @@ enum lswitch_mode {
struct lswitch_config {
enum lswitch_mode mode;
- /* Set up only exact-match flows? */
- bool exact_flows;
+ /* 0 to use exact-match flow entries,
+ * a OFPFW_* bitmask to enable specific wildcards,
+ * or UINT32_MAX to use the default wildcards (wildcarding as many fields
+ * as possible.
+ *
+ * Ignored when max_idle < 0 (in which case no flows are set up). */
+ uint32_t wildcards;
/* <0: Process every packet at the controller.
* >=0: Expire flows after they are unused for 'max_idle' seconds.