ofproto-dpif: xlate should not attribute stats to bond entry when using recirc
authorAndy Zhou <azhou@nicira.com>
Wed, 16 Apr 2014 15:04:23 +0000 (08:04 -0700)
committerAndy Zhou <azhou@nicira.com>
Wed, 16 Apr 2014 15:58:53 +0000 (08:58 -0700)
When recirculation is used to implement bond, the bond entry stats are
collected from the hidden post recirculation rules. This bug causes
double counting of stats to some strenuous bond entries.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
ofproto/ofproto-dpif-xlate.c

index 91ce7b7..cc4be6d 100644 (file)
@@ -1169,7 +1169,7 @@ output_normal(struct xlate_ctx *ctx, const struct xbundle *out_xbundle,
             return;
         }
 
-        if (ctx->xin->resubmit_stats) {
+        if (ctx->xin->resubmit_stats && !ctx->xout->use_recirc) {
             bond_account(out_xbundle->bond, &ctx->xin->flow, vid,
                          ctx->xin->resubmit_stats->n_bytes);
         }