From eb7282ddfa7d9fe9ab89c7543456978e671f4335 Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Wed, 16 Apr 2014 08:04:23 -0700 Subject: [PATCH] ofproto-dpif: xlate should not attribute stats to bond entry when using recirc 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 Acked-by: Jarno Rajahalme --- ofproto/ofproto-dpif-xlate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 91ce7b71d..cc4be6d90 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -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); } -- 2.43.0