xlate_actions() has one set of criteria for mirroring:

    if (!xin->recirc &&
        (special = process_special(&ctx, flow, in_port, ctx.xin->packet))) {
        ctx.xout->slow |= special;
    } else {
...
        /* Only mirror fully processed packets. */
        if (!exit_recirculates(&ctx)
            && mbridge_has_mirrors(xbridge->mbridge)) {
    }

and a different set of criteria for whether to count statistics for
mirroring:

    /* Update mirror stats only for packets really received by the bridge. */
    if (!xin->recirc && mbridge_has_mirrors(xbridge->mbridge)) {
...
    }

Off-hand, this seems like a bug, since it seems to me that we should
count statistics for mirroring in the same circumstances where we
actually mirror the packet.  Do you know a reason why this is wrong?

It seems like there's a similar situation for NetFlow statistics.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to