ofproto-dpif: Move RECIRC_RULE_PRIORITY to common header
authorSimon Horman <horms@verge.net.au>
Wed, 11 Jun 2014 00:28:03 +0000 (09:28 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 12 Jun 2014 00:11:49 +0000 (17:11 -0700)
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@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/bond.c
ofproto/ofproto-dpif.h

index 803408b..962d4d6 100644 (file)
@@ -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. */
index 51f943f..a1e643b 100644 (file)
@@ -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;