summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif.h
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2014-03-13 15:52:55 +0900
committerBen Pfaff <blp@nicira.com>2014-03-20 15:01:45 -0700
commit32260212a0687b6d14544a93a17363683bf41ea5 (patch)
tree3c6ff6993e849d46726c1da65a77e16b03504782 /ofproto/ofproto-dpif.h
parent527ae97e8ea064c2838c5fed4eb71a43c0bd4367 (diff)
downloadopenvswitch-32260212a0687b6d14544a93a17363683bf41ea5.tar.gz
ofproto-dpif: Differentiate between different miss types in packet in
Replace the generated_by_table_miss field of struct ofproto_packet_in with a miss_type field. The generated_by_table_miss field allowed packet-in messages generated by table-miss rules to be differentiated. This differentiation is still provided for by miss_type being set to OFPROTO_PACKET_IN_MISS_FLOW. This patch allows further differentiation by setting miss_type to OFPROTO_PACKET_IN_MISS_WITHOUT_FLOW if the packet-in message is generated by a table-miss which is not handled by a table-miss rule. This is in preparation for OpenFlow 1.3 version-specific handling of the default action for such misses. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/ofproto-dpif.h')
-rw-r--r--ofproto/ofproto-dpif.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif.h b/ofproto/ofproto-dpif.h
index 5409ce7f0..06fde3fbe 100644
--- a/ofproto/ofproto-dpif.h
+++ b/ofproto/ofproto-dpif.h
@@ -94,6 +94,7 @@ void rule_dpif_credit_stats(struct rule_dpif *rule ,
bool rule_dpif_is_fail_open(const struct rule_dpif *);
bool rule_dpif_is_table_miss(const struct rule_dpif *);
+bool rule_dpif_is_internal(const struct rule_dpif *);
struct rule_actions *rule_dpif_get_actions(const struct rule_dpif *);