[ovs-dev] [xlate v1 01/18] ofproto-dpif: Handle dest mirrors in compose_output_action().

Ben Pfaff blp at nicira.com
Wed Jun 26 19:42:48 UTC 2013

On Mon, Jun 24, 2013 at 06:59:15PM -0700, Ethan Jackson wrote:
> Before this patch, the mirroring code would retroactively insert
> actions for destination mirrors after actions were translated.
> This relied on converting datapath output actions into ofports
> which doesn't work for tunnels and patch ports.  This patch
> refactors the code to handle destination mirrors at output.
> Signed-off-by: Ethan Jackson <ethan at nicira.com>

The approach here seems odd, so I wonder if I'm missing something.

What I expected to see was that each compose_output_action() would add
the mirrors for that output to a set of mirrors to ultimately use, and
that somewhere else (just one place) we would add the mirrors for the
input to this same set, and that at the end we would use the set of
mirrors to do the mirroring.

What I see here is that each compose_output_action() computes the set
of input mirrors, adds in the provided set of output mirrors,
subtracts the mirrors already output to, and then outputs to any
remaining ones.

Am I missing something?



More information about the dev mailing list