ofproto-dpif: Add recirc_id field to struct rule_dpif
authorSimon Horman <horms@verge.net.au>
Wed, 11 Jun 2014 00:28:04 +0000 (09:28 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 12 Jun 2014 00:11:49 +0000 (17:11 -0700)
commit888ac0d743f52def3ff3ffd77471b4c68941edf8
tree106daa809f84cbf54ce308931b0fa15c8890c724
parent4ae48dcdb84733ddccf1e19db0fda76492db690a
ofproto-dpif: Add recirc_id field to struct rule_dpif

This is to allow a recirculation id to be associated with a rule
in the case that its actions cause recirculation.

In such a case if the recirc_id field is non-zero then that value should be
used, otherwise a value should be obtained using
ofproto_dpif_alloc_recirc_id and saved in recirc_id field.

When destructing the rule if the recirc_id field is non-zero then
the associated internal flow should be deleted.

This is in preparation for using the same helper as part of support
for using recirculation in conjunction series of actions including
with MPLS actions that are currently not able to be translated.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto-dpif.h