[ovs-dev] [PATCH v5 1/7] ofproto-dpif: Move RECIRC_RULE_PRIORITY to common header

Simon Horman horms at verge.net.au
Fri May 16 02:30:20 UTC 2014


This is in preparation for using this value
in ofproto-dpif-xlate.c when composing recirculation
actions added as a result of processing (MPLS) actions.

Signed-off-by: Simon Horman <horms at verge.net.au>

---
v3 - v5
* No change

v2
* First post
---
 ofproto/bond.c         | 1 -
 ofproto/ofproto-dpif.h | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/ofproto/bond.c b/ofproto/bond.c
index 803408b..962d4d6 100644
--- a/ofproto/bond.c
+++ b/ofproto/bond.c
@@ -56,7 +56,6 @@ static struct hmap *const all_bonds OVS_GUARDED_BY(rwlock) = &all_bonds__;
 /* Bit-mask for hashing a flow down to a bucket. */
 #define BOND_MASK 0xff
 #define BOND_BUCKETS (BOND_MASK + 1)
-#define RECIRC_RULE_PRIORITY 20   /* Priority level for internal rules */
 
 /* A hash bucket for mapping a flow to a slave.
  * "struct bond" has an array of BOND_BUCKETS of these. */
diff --git a/ofproto/ofproto-dpif.h b/ofproto/ofproto-dpif.h
index 679a41e..4076136 100644
--- a/ofproto/ofproto-dpif.h
+++ b/ofproto/ofproto-dpif.h
@@ -27,6 +27,9 @@
 #include "util.h"
 #include "ovs-thread.h"
 
+/* Priority for internal rules created to handle recirculation */
+#define RECIRC_RULE_PRIORITY 20
+
 union user_action_cookie;
 struct dpif_flow_stats;
 struct ofproto;
-- 
1.8.5.2




More information about the dev mailing list