ofproto-dpif: Differentiate between different miss types in packet in
authorSimon Horman <horms@verge.net.au>
Thu, 13 Mar 2014 06:52:55 +0000 (15:52 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 20 Mar 2014 22:01:45 +0000 (15:01 -0700)
commit32260212a0687b6d14544a93a17363683bf41ea5
tree3c6ff6993e849d46726c1da65a77e16b03504782
parent527ae97e8ea064c2838c5fed4eb71a43c0bd4367
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>
ofproto/connmgr.c
ofproto/connmgr.h
ofproto/fail-open.c
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto-dpif-xlate.c
ofproto/ofproto-dpif.c
ofproto/ofproto-dpif.h
ofproto/ofproto-provider.h