ofproto-dpif-xlate: Calculate 'ofpacts' in more restricted scope.
authorBen Pfaff <blp@nicira.com>
Thu, 23 Jul 2015 20:01:57 +0000 (13:01 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 31 Jul 2015 20:49:14 +0000 (13:49 -0700)
commit1806291d8af00baf6fa002f9c032217d19aa8d4f
tree55eea1b0be4e2703960ece31b1749bf8d98b1041
parent1520ef4f0d51841a64f47136ba9465afce2ea138
ofproto-dpif-xlate: Calculate 'ofpacts' in more restricted scope.

This moves the calculation of 'ofpacts' closer to its actual use, which
in my opinion makes the code easier to read.

This commit also expands the circumstances in which OVS omits sending
NetFlow records from those where there is exactly one OpenFlow action that
sends to controller, to those where any OpenFlow action sends to
controller.  I doubt that this is a big deal.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
ofproto/ofproto-dpif-xlate.c